eric-wieser / numpy_ringbuffer

Ring-buffer implementation that thinly wraps a numpy array
https://pypi.python.org/pypi/numpy_ringbuffer/
MIT License
89 stars 16 forks source link

Maintain copy of unwrapped array #16

Open nup002 opened 3 years ago

nup002 commented 3 years ago

Array unwrap is computationally expensive for large arrays. This PR makes sure the underlying array is not unnecessarily unwrapped if it has not changed since it was last unwrapped.

All tests pass.

nup002 commented 2 years ago

Time to merge this?