in reply to Re^3: returning large arrays from functions
in thread returning large arrays from functions
Perl could recognise that the contents of the internal array, once transfered to the external array, will be garbage collected, and avoid both the copying and the GC, by simple transferring the already allocated and populated internal storage of the internal array to the external array.
COW does not come into it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: returning large arrays from functions
by ikegami (Patriarch) on Nov 19, 2010 at 08:22 UTC | |
by Anonymous Monk on Nov 19, 2010 at 09:27 UTC | |
by ikegami (Patriarch) on Nov 19, 2010 at 14:20 UTC | |
by Anonymous Monk on Nov 19, 2010 at 14:55 UTC | |
by ikegami (Patriarch) on Nov 19, 2010 at 15:28 UTC | |
| |
by ikegami (Patriarch) on Nov 19, 2010 at 14:21 UTC |