[Helma-user] file read and processing pretty slow. ideas?

Chris Zumbrunn chris at zumbrunn.com
Mon Jul 16 23:32:34 CEST 2007


On Jul 16, 2007, at 20:49 , Joshua Paine wrote:

> Hannes Wallnoefer wrote:
>> You have to invoke File as constructor, using the "new" keyword.
>
> Doh. Ok, now it works, and it cuts the file read time from 0.219 to
> 0.015 - 0.032, bringing a good-case runtime down to only about 60%
> slower than PHP, which is well within tolerance.
>
> Since there's an order of magnitude difference between helma.File and
> File (and the latter is supposed to be deprecated), should I submit a
> bug report?

You also need the "new" keyword when invoking the helma.File version.  
Do you still see a performance difference when you do that?

In both cases, without the "new" keyword, you actually modify the  
global object to become a File object and get a reference to that  
back, instead of the proper File object you intended to create.

Chris




More information about the Helma-user mailing list