Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^15: Memory leak question

by SBECK (Pilgrim)
on Oct 06, 2010 at 16:51 UTC ( #863832=note: print w/ replies, xml ) Need Help??


in reply to Re^14: Memory leak question
in thread Memory leak question

I just found out a little bit about the leak.

Using the original Date::Manip code, there's a line in the _parse_datetime_iso8601 function which looks like:

($y,$md,$d,...) = @+{qw(y m d ...)};
where I just matched on the regexp from _iso8601_rx. If I comment this line out (and just set $y,$m,$d to some static values), there's no leaking. Note that I STILL match the regexp, I simply never refer to the %+ hash.

Unfortunately, I wasn't able to reproduce this in a simple test script, so I still need to investigate further, but I think this is an interesting result.


Comment on Re^15: Memory leak question
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (16)
As of 2015-07-30 21:17 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 (273 votes), past polls