mirror of
https://github.com/Zygo/bees.git
synced 2025-05-18 05:45:45 +02:00
std::list and std::map both have stable iterators, and list has the splice() method, so we don't need a hand-rolled double-linked list here. Coalesce insert() and operator() into a single function. Drop the unused prune() method. Move destructor calls for cached objects out from under the cache lock. Closing a lot of files at once is already expensive, might as well not stop the world while we do it. Signed-off-by: Zygo Blaxell <bees@furryterror.org>