Didn't we just have this discussion?

It is extremely hard for pre-extending strings to result in actual
performance improvements, and at best you can get a very small win in
return for a lot of work.  In fact the extra effort of having to track
where you are in the string manually almost certainly *loses*
performance.

So don't do it.

Ben

On 1/10/06, Donald Leslie {74279} <[EMAIL PROTECTED]> wrote:
> I have an apache/mod-perl application that can results in large xml
> strings which are then transformed by xslt into html. A database query
> can result in an xml string with a length greater than 300,000 . In a
> normal perl allocation you can pre-extend the string to prevent repeated
> new allocations and copies. Does anyone know what happens in a mod-perl
> application? Does pre-extending have any benefit?
>
> Don Leslie
>
> _______________________________________________
> Boston-pm mailing list
> [email protected]
> http://mail.pm.org/mailman/listinfo/boston-pm
>
 
_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to