Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: XML::Parser ( or Perl internals ) speed mysticism

by PodMaster (Abbot)
on Mar 26, 2006 at 16:18 UTC ( #539290=note: print w/ replies, xml ) Need Help??


in reply to Re^2: XML::Parser ( or Perl internals ) speed mysticism
in thread XML::Parser ( or Perl internals ) speed mysticism

sfink, your right ! This code working fine !
The original code should work fine as well (you've found a bug :)). Since the return value isn't being used for anything, that callback (among others) should be called in void context. The patch is easy, modify Expat.xs, and replace all instances of
G_DISCARD);
with
G_DISCARD|G_VOID);
I've tested this, and it doesn't seem break anything.

I've also filed a bug report.

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.


Comment on Re^3: XML::Parser ( or Perl internals ) speed mysticism
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://539290]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (13)
As of 2015-07-02 12:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (37 votes), past polls