What’s the best approach when data structures are being built from scratch? or How do you optimize pe

22 Replies, 868 Views

If you’re dealing with data structures being built dynamically, maybe look into “adaptive” structures? Like, switches strategies based on size.

Example: Python’s dict starts as a flat array, then goes to a proper hash table after a few inserts.

Also, +1 to logging growth events. Patterns emerge fast.

Messages In This Thread



Users browsing this thread: 1 Guest(s)