[Israel.pm] use and require

Shmuel Fomberg owner at semuel.co.il
Sun Mar 20 02:20:09 PDT 2011


Hi Gabor.

> I think it totally depends on the usage pattern. For a persistent web
> application loading everything up front won't hurt performance.
> For an editor where people want to start typing ASAP and don't
> want to wait for all the subsystems to load you will serve them better
> by delaying everything as much as possible.
In the case of an editor, I would expect it to load a minimum on 
startup, but then load silently all the other features, so the user 
won't need to wait when he needs them.
And there, in the code that loads the features, there should be all the 
requires.

Shmuel.


More information about the Perl mailing list