Advertisement

Cloning a fixed hash map using EASTL

Started by July 31, 2020 04:34 PM
0 comments, last by Kaptein 4 years, 7 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