dws has asked for the wisdom of the Perl Monks concerning the following question:
What overhead is incurred when a script reads from <DATA>?
Does the runtime actually open the script file and seek to a known (remembered) location? Or is some deeper optimization at work?
Is it any more or less expensive to put data after __DATA__ vs. storing it in a separate file? Are there advantages beyond convenience and the assumption that the script will still be in the kernel's disk cache?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Overhead of __DATA__?
by stefp (Vicar) on Sep 05, 2001 at 02:36 UTC | |
Re: Overhead of __DATA__?
by clintp (Curate) on Sep 05, 2001 at 02:43 UTC | |
by E-Bitch (Pilgrim) on Sep 05, 2001 at 08:16 UTC | |
by extremely (Priest) on Sep 05, 2001 at 20:52 UTC |