BrowserUk has asked for the wisdom of the Perl Monks concerning the following question:
Ignore this. The demo code is broken and the description describes the wrong thing.
If you run this one-liner and monitor the process memory usage after each of the 3 stages, it remains constant (as you might expect): However, if you do the same with this one-liner, which creates the same size buffer, takes the same lvalue ref and modifies the same byte of the original string via that lvalue ref, this time the memory usage temporarily triples, before falling back to double: The question is why? Is it a bug that should be reported? Can the demo be simplified?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tracking down an Lvalue bug?
by Anonymous Monk on Mar 17, 2012 at 21:42 UTC | |
by BrowserUk (Patriarch) on Mar 17, 2012 at 22:07 UTC | |
by ikegami (Patriarch) on Mar 19, 2012 at 23:12 UTC | |
by BrowserUk (Patriarch) on Mar 20, 2012 at 02:27 UTC | |
by ikegami (Patriarch) on Mar 20, 2012 at 03:36 UTC | |
|