Mark-Jason Dominus via RT wrote:
Show quoted text> <URL:
http://rt.cpan.org/Ticket/Display.html?id=24072 >
>
>
> Okay, but as yet nobody has provided any explanantion of why this is
> worth doing.
>
>> Why would you do this rather than simply use an untied array?
>> Regular arrays have a significant memory overhead per element. If
>> you need to store a large array with small elements, say a large
>> list of numbers, this will consume less memory
>
> This is pure fantasy; you pulled it right out of your ass.
Well, Dan's ass which is significantly kinkier. :)
Show quoted text> As I said earlier, Tie::File is not going to save any memory here.
>
> Consider the particular case of a list of numbers. Okay, the numbers
> are stored in a string. Great. But, in order to record the position
> at which each of the stored numbers occurs in the string, Tie::File
> uses...an array of numbers.
>
> Let's drop this thread until you or Dan or someone can come up with a
> plausible explanantion of why this would be worth doing. If the
> explanation is based on performance, it must be accompanied by some
> evidence.
>
> So far, the whole discussion seems ill-conceived, based on mistaken
> assumptions insufficiently investigated. I started out by supposing
> that there was something going on that I was not understanding, but
> the longer the conversation continues, the more I lose hope that that
> is the case.
You're right, I reran some benchmarks and didn't see any memory savings.