Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: Postpone garbage collection during a child process run?

by BrowserUk (Pope)
on Oct 06, 2010 at 16:54 UTC ( #863833=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Postpone garbage collection during a child process run?
in thread Postpone garbage collection during a child process run?

(Hate to be the bearer of bad news,

Then just stop!

particularly the BUGS AND LIMITATIONS and the SEE ALSO sections.
  • Bugs and limitations amount to:
    • share( <hashref>!<arrayref>) unituatively empties the structure being shared.

      Now fixed by the provision of shared_clone().

    • splice doesn't operate on shared arrays.

      Big deal, not!

    • Taking a ref to a shared structure elements doesn't autovivify.

      Many people wish that Perl didn't autovivify so readily anyway. Again No big deal.

    • refaddr() reports the thread local alias address, not the that of the principle.

      Use IsShared() to obtain a cross-thread usable identifier.

    • each can produce incorrect results when run against nested hashrefs.

      Make a local copy the the hashref and run each on that. Simple.

  • See also contains nothing but a list of useful links.

    So why make it sound like it contains a government health warning?

A few limitations, with solutions. No big deal.

And all aimed at someone who didn't mention threads and isn't using them. Stop jumping on bandwagons that you don't understand!

Have you actually written any threaded perl code?

Because your pronouncements on the subject show little or no understanding of the real issues involved.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.


Comment on Re^3: Postpone garbage collection during a child process run?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2014-09-16 04:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (155 votes), past polls