A new C++ blog post. Analyzing hash tables for use with static data:http://blog.demofox.org/2016/10/03/is-code-faster-than-data-examining-hash-tables/ …
-
-
Vastauksena käyttäjälle @Atrix256
Great article! I'll have to look into the few cases in MAME where we use std::map and see if we can make better choices. :)
1 vastaus 0 uudelleentwiittausta 1 tykkäys -
Vastauksena käyttäjälle @TheMogMiner
oh wow! Yeah you hear it's slow but til you see it... ! Do you guys have much "static data lookups" in MAME? or mainly dynamic?
1 vastaus 0 uudelleentwiittausta 0 tykkäystä -
Vastauksena käyttäjälle @Atrix256
The cases I'm thinking of are mainly in the renderer for looking up bgfx TextureHandles, so dynamic, but only like 5-10 items.
2 vastausta 0 uudelleentwiittausta 1 tykkäys -
Vastauksena käyttäjille @TheMogMiner ja @Atrix256
I just don't want to set a bad example (by using std::map) for the dinosaurs on the team who think C++11 is a new kind of VCR. :P
1 vastaus 0 uudelleentwiittausta 1 tykkäys -
Vastauksena käyttäjille @TheMogMiner ja @Atrix256
Not that C++11 has to do with std::map, just that there are some people on the team who still look suspiciously at stock C++ stuff
1 vastaus 0 uudelleentwiittausta 1 tykkäys
It makes sense in a way though, MAME was straight-up C99 for years, so that's what some team members are more used to.
-
-
Vastauksena käyttäjälle @TheMogMiner
i cant even imagine what that's like, and i'm not even a new C++ fanboi. I new/delete but *printf :P
0 vastausta 0 uudelleentwiittausta 0 tykkäystäKiitos. Käytämme tätä aikajanasi parantamiseen. KumoaKumoa
-
Lataaminen näyttää kestävän hetken.
Twitter saattaa olla ruuhkautunut tai ongelma on muuten hetkellinen. Yritä uudelleen tai käy Twitterin tilasivulla saadaksesi lisätietoja.