Skip Menu |
 

This queue is for tickets about the XML-Twig CPAN distribution.

Report information
The Basics
Id: 59173
Status: rejected
Priority: 0/
Queue: XML-Twig

People
Owner: Nobody in particular
Requestors: justincase [...] yopmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: parse should accept scalar ref
If passing in a large string of xml, it would be more efficient to pass it as a scalar ref.
Download (untitled) / with headers
text/plain 426b
On Wed Jul 07 17:16:30 2010, justincase wrote: Show quoted text
> If passing in a large string of xml, it would be more efficient to pass > it as a scalar ref.
parse is just a call to XML::Parser::Expat's parse, which only accepts a scalar, not a scalar ref. So I don't think that allowing passing a scalar ref will improve things that much, as parse would need to de-reference the string to pass it to the real parsing sub anyway. __ mirod


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.