Steinar H. Gunderson
unread,Jun 4, 2025, 11:21:58 AMJun 4Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Daniel Cheng, Colin Blundell, Dale Curtis, Michael Lippautz, Dave Tapuska, Kentaro Hara, platform-architecture-dev, Kent Tamura
On Wed, Jun 04, 2025 at 08:09:55AM -0700, Daniel Cheng wrote:
> 2. WTF's hash tables make me a bit sad. The in-place representations for
> deleted / empty objects regularly surprises people (especially not being
> able to use 0 as a key by default!), and they have a max load factor of
> 0.5, which is pretty low compared to most other state of the art hash
> tables. Fixing the former means storing some more metadata out-of-line
> though, and I'm not sure if that's compatible with Oilpan's concurrent
> tracing...
+1. There's been a _lot_ of activity in C++ hash tables in the blogosphere
over the last ten years (to the point where people have even made meta-posts
comparing them all under various conditions), and it would be very
interesting to see if we could adapt some of them for our use. I'd guess
we're leaving a fair bit of performance on the table; in css/, we made our
own and won a fair bit of CPU/RAM on that. (We can't use it to replace
WTF::HashMap wholesale, unfortunately, in particular because insertion
is allowed to fail in an attack scenario.)
/* Steinar */