Message 51186 - Python tracker (original) (raw)
Logged In: YES user_id=364875
I'd assumed Python didn't double the size when resizing an array because of how much memory that wastes. May I suggest trying it with a multiplier of 1.5x, and comparing both CPU time and memory consumption? I find for these things that 1.5x is nearly as fast and wastes far less memory.