1,205 karma · joined Dec 31, 2017 (8y ago) · 433 submissions
comment 8y ago · link · parent
comment 8y ago · link · parent
comment 8y ago · link · parent
comment 8y ago · link · parent
comment 8y ago · link · parent
comment 8y ago · link · parent
One way to speed up set's usually appalling performance is to give it a custom allocator so that instead of N calls to allocate tiny tree nodes all over the heap, you get all your tree nodes on an arena. This can dramatically speed up short-lived sets (for example you are trying to build the unique set of some non-unique input).
comment 8y ago · link · parent
comment 8y ago · link · parent
They're absolutely brilliant against barbarians, though.
comment 8y ago · link · parent