Convert notes into blockquotes
This commit is contained in:
parent
832fb15e54
commit
8ed9dea394
105 changed files with 884 additions and 411 deletions
9
07-02.md
9
07-02.md
|
|
@ -86,9 +86,12 @@ checking whether it's zero. There may be ways to perform those tasks a
|
|||
little faster by selecting different instructions, but they can get only
|
||||
so fast, and branching can't even get all that fast.
|
||||
|
||||
------------------- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
 *The trick, then, is not to find the fastest way to decrement a count and branch conditionally, but rather to figure out how to accomplish the same result without decrementing or branching as often. Remember the Kobiyashi Maru problem in* Star Trek*?The same principle applies here: Redefine the problem to one that offers better solutions.*
|
||||
------------------- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
> 
|
||||
> The trick, then, is not to find the fastest way to decrement a count and
|
||||
> branch conditionally, but rather to figure out how to accomplish the
|
||||
> same result without decrementing or branching as often. Remember the
|
||||
> Kobiyashi Maru problem in *Star Trek*? The same principle applies here:
|
||||
> Redefine the problem to one that offers better solutions.
|
||||
|
||||
Consider Listing 7.1, which searches a buffer until either the specified
|
||||
byte is found, a zero byte is found, or the specified number of
|
||||
|
|
|
|||
Loading…
Reference in a new issue