Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: How to destroy embedded Perl interpreter cleanly (no memory leak)?

by JSchmitz (Canon)
on Jun 05, 2002 at 12:56 UTC ( [id://171815]=note: print w/replies, xml ) Need Help??


in reply to How to destroy embedded Perl interpreter cleanly (no memory leak)?

First off you should be calling perl_run so that your DESTROY methods and end blocks are executed at the right time. Have you looked at the simple demo of embedding that ships with Perl called miniperlmain.c?

I also think that it is a better idea to maintain a single interpreter rather than creating and destroying them all the time. I think this would help out with speed a lot since Perl would only have to be loaded into memory once.

cheers

JSchmitz
  • Comment on Re: How to destroy embedded Perl interpreter cleanly (no memory leak)?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (2)
As of 2024-04-26 01:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found