On Thu, 8 Jun 2000, Stas Bekman wrote:

> Stephen Zander wrote:
> > 
> > >>>>> "Stas" == Stas Bekman <[EMAIL PROTECTED]> writes:
> >     Stas> Ouch :( Someone to explain this phenomena? and it's just
> >     Stas> fine under the handler.... puzzled, what can I say...
> > 
> > Continuous array growth and copying?
> 
> Is this a question or a suggestion? but in both cases (mod_perl and perl
> benchmark) the process doesn't exit, so the allocated datastructure is
> reused... anyway it should be the same. But it's not.

only the @array length remains allocated, it's elements are free-d
each time, you're copying the "strings" into a new SV everytime.
push @array, \"string" should make a big difference (remember $r->print
deferences refs to strings)

Reply via email to