Ok, thanks. After writing I realized, yeah, I have to go back to use statics and parameters which I wanted to avoid because it’s getting complicated with parameters now I have 3 mapping hashmaps now.
So, there was nothing else for this? Function pointers will also not help it seems.
Good thing I read your comment again and I’ve put my 3 NativeMultiHashMaps in a struct now which solves the issue of the parameter list.
As internally a UnsafeMultiHashMap is used with just a pointer copying this seems very fast.
Thanks tertle! Took me quite a while to refactor this whole mess, now I have a solution that I’m quite happy with.