Convert notes into blockquotes
This commit is contained in:
parent
832fb15e54
commit
8ed9dea394
105 changed files with 884 additions and 411 deletions
16
05-05.md
16
05-05.md
|
|
@ -22,9 +22,11 @@ And so we find, as we so often will, that optimization is definitely not
|
|||
a cut-and-dried matter, and that there is no such thing as a single
|
||||
"best" approach.
|
||||
|
||||
------------------- --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
 *You must know what your application will typically do, and you must know whether you're more concerned with average or worst-case performance before you can decide how best to speed up your program—and, indeed, whether speeding it up is worth doing at all.*
|
||||
------------------- --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
> 
|
||||
> You must know what your application will typically do, and you must know
|
||||
> whether you're more concerned with average or worst-case performance
|
||||
> before you can decide how best to speed up your program—and, indeed,
|
||||
> whether speeding it up is worth doing at all.
|
||||
|
||||
By the way, don't think that just because very large block sizes don't
|
||||
much improve performance, it wasn't worth using restartable blocks in
|
||||
|
|
@ -56,9 +58,11 @@ to the **read()** function, but a code profiler could be used to do the
|
|||
same thing much more easily), I found that the best code in the world
|
||||
wouldn't make much difference.
|
||||
|
||||
------------------- -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
 *When you try to speed up code, take a moment to identify the hot spots in your program so that you know where optimization is needed and whether it will make a significant difference before you invest your time.*
|
||||
------------------- -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
> 
|
||||
> When you try to speed up code, take a moment to identify the hot spots
|
||||
> in your program so that you know where optimization is needed and
|
||||
> whether it will make a significant difference before you invest your
|
||||
> time.
|
||||
|
||||
As for restartable blocks: Here we tackled a considerably more complex
|
||||
application of restartable blocks than we did in Chapter 1—which turned
|
||||
|
|
|
|||
Loading…
Reference in a new issue