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

Report information
The Basics
Id:
59173
Status:
rejected
Priority:
Low/Low
Queue:

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

BugTracker
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.
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 runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

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