diff options
author | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2020-02-16 16:51:53 +0100 |
---|---|---|
committer | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2020-03-06 17:45:48 +0100 |
commit | 4e0d1eca10b7d2cf0ccbdbebee698d6b716d075b (patch) | |
tree | 099a879c4532b871351bded5e07b142a318d5e73 /src/ipa/libipa/meson.build | |
parent | 69d1e24ac75dc4003737b926bee3ce05420d047b (diff) |
libcamera: V4L2BufferCache: Improve cache eviction strategy
The strategy used to find a free cache entry in the first implementation
was not the smartest, it picked the first free entry. This lead to
unwanted performance issues as the cache was not used as good as it
could for imported buffers.
Improve this by adding a last usage sequence number to the cache entries
and change the eviction strategy to use the oldest free entry instead of
the first one it finds.
Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Naushir Patuck <naush@raspberrypi.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/ipa/libipa/meson.build')
0 files changed, 0 insertions, 0 deletions