Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>While you are hunting around for a profiler, run the program in the debugger IDE and <a href="https://stackoverflow.com/a/378024/23771"><em>try this method</em></a>.</p> <p>Some programmers rely on it. There's an example <a href="http://sourceforge.net/projects/randompausedemo/" rel="nofollow noreferrer"><em>here</em></a> of how it is used.</p> <p>In that example here's what happens. A series of problems are found and removed.</p> <ul> <li><p>The first iteration saved 33% of the time. (Speedup factor 1.5)</p></li> <li><p>Of the time remaining, the second iteration saved 17%. (Speedup factor 1.2)</p></li> <li><p>Of the time remaining, the third iteration saved 13%. (Speedup factor 1.15)</p></li> <li><p>Of the time remaining, the fourth iteration saved 66%. (Speedup factor 2.95)</p></li> <li><p>Of the time remaining, the fifth iteration saved 61%. (Speedup factor 2.59)</p></li> <li><p>Of the time remaining, the sixth iteration saved 98%. (Speedup factor 45.9)</p></li> </ul> <p>All those big-percent changes were not big percents of the original time, but they became so after other problems were removed. The total amount of time saved from the original program was over 99.8%. The speedup was 730 times.</p> <p>Most programs that have not gone through a process like this have <em>lots</em> of room for speedup, but you're not likely to realize it using only a profiler because all they do is make measurements. They don't always point out to you what you need to fix, and each problem you miss keeps you from getting the really significant speedup.</p> <p>To put it another way, the final speedup factor is the product of all those individual factors, and if any one of them is missed, it is not only absent from the product, but it reduces the following factors. That's why, in performance diagnosis, "good enough" is not good enough. You have to find <em>every</em> problem.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload