Re: Re: Speeding up pdf:api2

"Mr. Shawn H. Corey" <[email protected]> Fri, 05 Sep 2008 09:08:03 -0400
Newsgroups gmane.comp.lang.perl.modules.pdfapi2
Message-ID <1220620083.5742.14.camel@mungo>
On Thu, 2008-09-04 at 11:54 +0000, spinningwebz2002 wrote:
> Interesting thing. Without trimming the file, PDF::API2::Util::BEGIN 
> takes 9.2% of the time in the execution, after trimming the file 
> there is no entry for it. But, the execution time goes up a 1/2 
> second?

Yes, when I was looking through the code, I noticed that it had it's own
way of deferring loading.  I thought, "Why doesn't it just use
AUTOLOAD?"  It turns out that it's way is faster.

I don't fully understand what it's doing and I don't have time to dig
deeper but I realize that it has a sophisticated mechanism and getting
it to load faster would involve considerable time and effort.


-- 
Just my 0.00000002 million dollars worth,
  Shawn

"Where there's duct tape, there's hope."
        Cross Time Cafe

"Perl is the duct tape of the Internet."
        Hassan Schroeder, Sun's first webmaster