Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
frogtoss
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
frogtoss
3y ago
If you need to allocate and free objects from multiple threads, you could put a mutex around the necessary reads and writes. But why would you when you can just have a pool per-thread and then merge them at a global sync boundary? You can
2.
▲
Constant Time Memory Allocation from Object Pools
(frogtoss.com)
3 points
by
frogtoss
3y ago
|
3 comments
3.
▲
by
frogtoss
3y ago
The swap delete trick isn't new, but it is not as widely known as it should be. Used in game code where fragmentation, system allocator overhead and search overhead is unwelcome, it is a trick that saves thousands of cycles over naive
4.
▲
Low Overhead Structured Logging in C
(frogtoss.com)
1 points
by
frogtoss
5y ago
|
0 comments