You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I read the lru.h code, I have an question want to ask:
lru-cache-cpp assumes the whole hash was allocated when finished construction, so will not cause rehash problem, and pointer to key and value will not invalid later.
But you implementation replaced with std::unordered_map, and not acquired whole memory before, then your const K* key may invalid if rehash occurs.
And another question, what's the meaning of your ValueSize? the difference of sizeof_ and sizeof ??
The text was updated successfully, but these errors were encountered:
I read the lru.h code, I have an question want to ask:
lru-cache-cpp assumes the whole hash was allocated when finished construction, so will not cause rehash problem, and pointer to key and value will not invalid later.
But you implementation replaced with std::unordered_map, and not acquired whole memory before, then your const K* key may invalid if rehash occurs.
And another question, what's the meaning of your ValueSize? the difference of sizeof_ and sizeof ??
The text was updated successfully, but these errors were encountered: