diff options
author | Thomas Gleixner <[email protected]> | 2010-11-30 17:49:53 +0000 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2010-11-30 20:04:18 -0200 |
commit | 020bb75a6deeca5ebeae531dc7378c157affc8fd (patch) | |
tree | 1e103a173a5454adee9235c52558eef22fc24214 /net/unix/af_unix.c | |
parent | fe17420784a6d3602e98f798731369fa05936cbe (diff) |
perf session: Cache sample objects
When the sample queue is flushed we free the sample reference objects. Though
we need to malloc new objects when we process further. Stop the malloc/free
orgy and cache the already allocated object for resuage. Only allocate when
the cache is empty.
Performance gain: ~ 10%
Cc: Ingo Molnar <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions