in reply to Re^2: Circular buffer
in thread Circular buffer
I am curious as to the implementation of splice() in Perl. Does a splice() really result in a copy of an entire array, like a typical 'C' realloc()? If a Perl array has say 1,000 elements and I do an "insert" after element 2, how does the low level Perl deal with this? Does it really do 1,000+ operations?
How does Perl handle the push or unshift operations?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Circular buffer
by ikegami (Patriarch) on Mar 21, 2011 at 15:52 UTC |