Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Overhead of __DATA__?by dws (Chancellor) |
on Sep 05, 2001 at 01:59 UTC ( [id://110176]=perlquestion: print w/replies, xml ) | Need Help?? |
dws has asked for the wisdom of the Perl Monks concerning the following question:
I seek the wisdom of those with knowledge of The Source.
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?
Back to
Seekers of Perl Wisdom
|
|