in reply to Growing strings, avoiding copying and fragmentation?
Also, as far as I know, perl itself gets memory from system each time twice as in previous memory allocation, and I find this strategy much worse than allocating by some reasonable chunks.
But why you do not use Compress::Zlib or similar modules, or even C interface to compression library (as long as you'r in Inline::C)?
I think this approach will save much more to you and will add portability? (Win32 may not have /usr/bin/compress)
Courage, the Cowardly Dog
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Growing strings, avoiding copying and fragmentation?
by diotalevi (Canon) on Aug 09, 2003 at 22:41 UTC | |
by Courage (Parson) on Aug 10, 2003 at 13:30 UTC |