diff options
author | Sergey Senozhatsky <[email protected]> | 2015-04-15 16:16:15 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2015-04-15 16:35:22 -0700 |
commit | 495819ead5ad02174208994ca610852a7791a2f2 (patch) | |
tree | 3e1c75d7ceefac98519dfae8c181e9b1712bc0f6 /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | 1ec7cfb13acb8047ae5baafb43d2cd6b64ac85b9 (diff) |
zsmalloc: micro-optimize zs_object_copy()
A micro-optimization. Avoid additional branching and reduce (a bit)
registry pressure (f.e. s_off += size; d_off += size; may be calculated
twise: first for >= PAGE_SIZE check and later for offset update in "else"
clause).
scripts/bloat-o-meter shows some improvement
add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-10 (-10)
function old new delta
zs_object_copy 550 540 -10
Signed-off-by: Sergey Senozhatsky <[email protected]>
Acked-by: Minchan Kim <[email protected]>
Cc: Nitin Gupta <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions