Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
aes512
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
aes512
3y ago
You mentioned it yourself, but please use `strncmp` - you don't want to have unbounded c style strings like that as keys. A lot of mallocs. Just malloc a pool and implement an allocation strategy on top of it. Malloc more as necessary