Wafer icon indicating copy to clipboard operation
Wafer copied to clipboard

Investigate DVec

Open Libbum opened this issue 7 years ago • 0 comments

dogged

The main difference then between a Vec and a DVec lies not in the operations it offers, but in how much they cost. That is, when you push on a standard Vec, it is an O(1) operation. But when you clone, that is O(n). For a DVec, those costs are sort of inverted: pushing is O(log n), but cloning is O(1).

Libbum avatar Feb 03 '18 06:02 Libbum