add note about sorting
This commit is contained in:
parent
c6692519cc
commit
c8ad697848
@ -878,6 +878,8 @@ Techniques specific to the architecture running the code
|
||||
counts[i & 1] ++
|
||||
"branch-free code", benchmark; not always faster, but frequently harder to read
|
||||
|
||||
* sorting data can help improve performance via both cache locality and branch prediction, even taking into account the time it takes to sort
|
||||
* use a specialized sort, such as radix sort, if possible
|
||||
* function call overhead
|
||||
* reduce data copies
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user