Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Hunting a memory eater

by McA (Priest)
on Feb 27, 2014 at 18:13 UTC ( #1076427=note: print w/replies, xml ) Need Help??


in reply to Re: Hunting a memory eater
in thread Hunting a memory eater

Hi,

I don't do it this way in my code. But a cpan module, I'm using is using Net::DNS in more or less this way. While searching for the culprit I could reduce it to the snippet shown by me.

So, you're absolutly right that someone should instantiate one resolver object and then use this resolver for 1..n lookups.

In terms of memory usage I would expect that all memory gets freed when the reference to the object gets out of scope.

Regards
McA

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1076427]
help
Chatterbox?
[Corion]: Yeah, but calling some random cloud service is not really implementing that stuff yourself :) Also, I don't like to litter the world with my personal data, or random bits of recorded audio... Ideally, my computations never leave my network :)
[Veltro]: ok, but nm. I meant the solution as a whole actually. Not sincerely the apps that use it
[marto]: and not long ago it wasn't feasible for anyone really to create a finger print of all known music to compare samples against...
[marto]: if you're living in the cloud, you're going to get rained on :P
[Veltro]: feasible in the sense of 'making money'?
[marto]: if your app just calls a remote or third party service to do the task, you app does not 'do the task', it's just a messenger

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2018-05-24 12:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?