[guest - Tue Apr 13 09:47:33 2004]:
Show quoted text> Results:
>
> elapsed time = 4
> elapsed time = 2
Here's my results on my 2ghz Celeron laptop running Perl 5.6.1 and using
XML::SAX::Expat as my SAX parser:
$ perl bug.pl
Using /home/sam/XML-Validator-Schema/blib
elapsed time = 0.121279954910278
elapsed time = 0.0977940559387207
I had to use Time::HiRes::time() just to see anything but 0!
I'm not sure what's making your runs so slow, but here's a few things to
consider:
- What SAX parser are you using? You might be using XML::SAX::PurePerl
by accident. It's very slow and only useful for development.
- What kind of hardware are you running on? I imagine an old Sun IPC
might produce the kind of speed you're seeing!
- Are you using a UTF8 locale setting? That can drastically slow down
Perl, particularly Perl 5.8.x. Try setting LANG to "en_US" and
see if that helps.
Hope that helps,
-sam
PS: I closed this bug in RT, but please feel free to email me if you
need further help.