note
salva
Indeed. [metamod://PDL] is probably the most powerful and efficient module both in terms of memory usage and speed, but it has its learning curve.
<p>On the other hand, there are several modules on CPAN allowing one to access packed strings as regular arrays as for instance [metacpan://Packed::Array], [metacpan://Tie::Array::PackedC] or my own [metacpan://Tie::Array::Packed].
<p>Those modules are memory efficient, but relatively slow due to the tie interface overhead. Well, actually, for instance, [metacpan://Tie::Array::Packed] which is written in fast XS, would probably be on par with using perl builtins (i.e. <c>substr</c>, <c>pack</c>, <c>unpack</c>, etc.) to access a packed string. Probably it depends of the specific operations being performed.
11125078
11125083