commit | d7fbd893388d9e86d29b7cfbd5457bcf03496fbf | [log] [tgz] |
---|---|---|
author | Ajeet Yadav <ajeet.yadav.77@gmail.com> | Tue Dec 27 15:10:04 2011 +0530 |
committer | Phillip Lougher <phillip@squashfs.org.uk> | Fri Dec 30 01:24:13 2011 +0000 |
tree | ea94d043ee3e842f7273391b143a5949afb39975 | |
parent | 89cab5b5727d3139adc247e3a3d4ee5b10e3eda5 [diff] |
Squashfs: optimise squashfs_cache_get entry search squashfs_cache_get() iterates over all entries to search for block its looking for. Often get() / put() are called for same block. If we cache the current entry index, then we can optimise the subsequent *_get() calls. Signed-off-by: Ajeet Yadav <ajeet.yadav.77@gmail.com> Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>