Hacker News new | ask | show | jobs
by sesuximo 901 days ago
1) Maybe you could store the bitwise-or of size and capacity on top of each other. If you restrict capacity to a power of two

2) you could store the capacity before the array payload