Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17625

Cloning a fixed hash map using EASTL

$
0
0

I'm having a performance problem where I need to clone an EASTL fixed hash map. It will keep calling into the prime rehash policy function GetRehashRequired as the new hash map is being constructed, which is costing a lot of time. Does anyone here have any experience with programming against EASTL?

There is no alternative to copying the hash map for my use case. Keys are integral and while the values does have a copy constructor, it's not time-consuming to run.

Afaik. it will end up using hashtable copy constructor, which seems to copy most things, including rehash …


Viewing all articles
Browse latest Browse all 17625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>