[PATCH] blkparse: more optimizations
authorJens Axboe <axboe@suse.de>
Thu, 22 Sep 2005 18:02:30 +0000 (20:02 +0200)
committerJens Axboe <axboe@suse.de>
Thu, 22 Sep 2005 18:02:30 +0000 (20:02 +0200)
commitd36421e4cfe847a8b6e2f4f20aeeba4cb5c23918
tree25e42a52fac1cbad1ff35b5e940042ce3c754a6a
parent5ec550f7d997f9b6a4ccb815cd2876a79dbfb0a8
[PATCH] blkparse: more optimizations

The sort path unification and memory cutback introduced some
overhead, mainly due to lots of memory allocations and frees
of the same structures over and over again. Add a frontend
cache for struct trace and blk_io_trace allocations.

Also concatenate a lot of the string operations in fmt_select,
it's quite high in the profiles.

This brings us to the same performance as the memory hog version.
blkparse.c