logoalt Hacker News

kevin_thibedeauyesterday at 12:53 AM0 repliesview on HN

powers-of-two are problematic with growable arrays on small heaps. You risk ending up with fragmented space you can't allocate unless you keep growth less than 1.61x, which would necessitate data structures that can deal with arbitrary sizes.