🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Cloning a fixed hash map using EASTL

Started by
0 comments, last by Kaptein 3 years, 11 months ago

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 policy members. The rehash policy function shows up in the flamegraph, yet I get the same performance whether I copy each element individually or copy the hashtable.

How do I delete this post? I need to do more research.

This topic is closed to new replies.

Advertisement