Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 9113

Questions related to improving application performance, this can be range from selection software architecture to selection of algorithms.

14 votes

Database design - Store state or compute state every time?

The best approach is to try it first without an extra field, measure the performance, and if it really turns out to be too slow, you try to optimize. …
Doc Brown's user avatar
  • 214k
4 votes

Which statement performs best?

What about a more DRY version, where even the code visible =is not repeated over and over again? foreach(var btn in new[]{lnkbtn1, lnkbtn2, lnkbtn3}) btn.visible=false; IMHO that will scale b …
Doc Brown's user avatar
  • 214k
2 votes
Accepted

Calculation On Large File Data

My idea is first I make this table: CustomerId ItemId Total_Cost That's ok, there is no way around this, you will need to determine the total price sum per item and per customer first before y …
Doc Brown's user avatar
  • 214k
28 votes
Accepted

Accessing enemies' locations quickly in a 2D game

For this kind of domain, it is is not uncommon that you need bidirectional lookup: quick access to the coordinate of an enemy (or more general, of any kind of piece) quickly determine which piece is …
Doc Brown's user avatar
  • 214k
7 votes

Software Optimization vs. Hardware Optimization - what has the bigger impact?

In the domain of just-in-time compilers, improvements in compiler software has increased application performance by around an order of magnitude in the last 10-20 years. … real increasement was less since application performance depends also on other hardware components like memory access speed, hard drive speed, GPU speed etc). …
Doc Brown's user avatar
  • 214k
0 votes

Term for Performance Issues Due to Looping

Call it "missed occasion for performance optimization by using bulk operations instead". … My point is: performance should not be the only, perhaps not even the first criteria for deciding which solution is better, also think about maintainability. …
Doc Brown's user avatar
  • 214k
0 votes

Information about how much time in spent in a function, based on the input of this function

If you want to profile just one function, and you know the small number of input combinations you are interested in, you can add some kind of "switch mechanism" which will make the calls visible in an …
Doc Brown's user avatar
  • 214k
16 votes

Why is quicksort better than other sorting algorithms in practice?

Quicksort does not outperform all other sorting algorithms. For example, bottom-up heap sort (Wegener 2002) outperforms quicksort for reasonable amounts of data and is also an in-place algorithm. It i …
Doc Brown's user avatar
  • 214k
2 votes
Accepted

Should We Code for Performance or Stability?

This gives you an opportunity to measure the performance impact - and prove or disprove managements objections. …
Doc Brown's user avatar
  • 214k
9 votes
Accepted

Most Efficient way to Compute the sum of divisors of N (1 ≤ N ≤ 1 000 000 000)

Here is a simple improvement which will most probably meet your time constraints. For every divisor i of N, there is also a corresponding divisisor N/i. Thus to find all pairs of divisors, you need on …
Doc Brown's user avatar
  • 214k
7 votes
Accepted

In C#, performance wise, an object's size does matter when you access one of its members thr...

The size only matters from a performance perspective when you copy objects around, when you store them to disk or a database, or when you are accessing the data of so many different objects that your CPU … So is an accumulated effect, and I doubt it counts as "performance impact caused by access to one of its members through a reference". …
Doc Brown's user avatar
  • 214k
3 votes
Accepted

VBA Outlook: quickly find subfolder

You could read the available folder names just once, and store their names in a local file. When the macro is run again, read that file into memory and use it to find the full folder name for a given …
Doc Brown's user avatar
  • 214k
5 votes

Designing database for a table with huge number of rows

after only one week, DailySales table will become so huge that the database will be cumbersome to manage I question that. I have been using MS Access regularly for more than 20 years, and used it …
Doc Brown's user avatar
  • 214k
1 vote
Accepted

Trouble Designing Programs in VBA

In case performance really turns out being not acceptable, then you should start thinking about improving it, not beforehand. … Experimenting with ideas from #1 or #3 might help, but make sure you only sacrifice readability of your code when it is absolutely unavoidable to meet the performance goals. …
Doc Brown's user avatar
  • 214k
5 votes
Accepted

How do I narrow down a search space if symmetries are equivalent?

Each of the 3^25 combinations can be interpreted as a 25 digit number in base-3 number system. So there is a one-to-one correspondence between those numbers from 0 to 3^25-1 and those combinations / …
Doc Brown's user avatar
  • 214k

15 30 50 per page