|
|
|
|
|
by bdr
6002 days ago
|
|
Well it was taking like 20 seconds to do my cleanup. Five seconds still sucks for users. IIRC, remove has to recurse to every child to check for stored data, so I'm just removing the nodes manually and eating the tiny data memory leak. edit: and yes, 4x is a constant fraction, as opposed to an asymptotic improvement. :) |
|
The 4x number was wall-clock time for the particular tests - so obviously your mileage may vary. In fact, the more complicated your case the better your eventual gains will be.