Skip Menu |

This queue is for tickets about the Encode CPAN distribution.

Report information
The Basics
Id: 77867
Status: open
Priority: 0/
Queue: Encode

People
Owner: Nobody in particular
Requestors: NHORNE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 2.44
Fixed in: (no value)



Subject: encode_utf8 / decode_utf8 reference
Please modify encode_utf8 and decode_utf8 to allow a reference to a string to be given. This will save considerable memory on the stack when encoding/decoding large amounts of data.
From: victor [...] vsespb.ru
In Perl all subrouting arguments are passed by reference (i.e. "aliasing"). Problem that those subroutines copy it, thus it indeed doubles the memory usage. This is true for decode/encode/decode_utf8/encode_utf8 Not sure if that can be worked around without side effects. On Sun Jun 17 19:16:43 2012, NHORNE wrote: Show quoted text
> Please modify encode_utf8 and decode_utf8 to allow a reference to a > string to be given. This will save considerable memory on the stack > when encoding/decoding large amounts of data.