in reply to Re^2: is precompiling possible / effective?
in thread is precompiling possible / effective?
You can also try to measure the startup and initialization phase, and see if it's large enough to warrant the effort.
#!/usr/bin/perl use Time::HiRes qw(time); my $start; BEGIN { $start = time() }; # rest of module loading here # then initialization (open database connections etc.) warn "Startup time: ", time() - $start; # rest of script goes here
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: is precompiling possible / effective?
by MashMashy (Sexton) on Feb 12, 2009 at 23:50 UTC | |
by moritz (Cardinal) on Feb 12, 2009 at 23:55 UTC | |
by ikegami (Patriarch) on Feb 13, 2009 at 19:12 UTC | |
by MashMashy (Sexton) on Feb 13, 2009 at 00:09 UTC |