« * K @milkydelta.moe

milkydelta @milkydelta.moe

2026-09-13 02:07 UTC

Shrinking the array isn't automatic for the same reason. If you hit a large size once, even if the elements are then removed, you might need that capacity later. Keeping it around avoids at least 2 reallocations. It's a trade-off. You have increased memory usage to avoid increased CPU usage.

A reply in a thread.

0 likes, 0 reposts, 0 replies

3 Next post4 More from @milkydelta.moeBackBluesky home
☆ Save to home · 0 Home · Find · Games · Chat · AI · Setup