UnderMine has asked for the wisdom of the Perl Monks concerning the following question:
I would like some advice as to whether anyone has experience of Clone's clone Vs Storable's dclone.
A module that I have recently been using Hash::Merge uses clone in order to do a level at a time comparison of the keys used in hashs. But this has shown up a few Bugs in the underlying module Clone (including causing a Seg-fault).
I have posted a fix for Hash::Merge that by-passes the Seg fault issue in clone but does not address the Uni-code support issue.
My question is should Hash::Merge be using clone or dclone. dclone does deep cloning but is part of core perl but is slower than clone in the context of Hash::Merge which only requires single depth transversal cloning.
All thoughts welcome
UnderMine
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Clone - clone Vs Storable - dclone
by pg (Canon) on Mar 25, 2003 at 03:31 UTC | |
by UnderMine (Friar) on Mar 25, 2003 at 11:40 UTC | |
by pg (Canon) on Mar 25, 2003 at 15:32 UTC | |
by Anonymous Monk on Nov 25, 2010 at 18:49 UTC | |
Re: Clone - clone Vs Storable - dclone
by abatkin (Sexton) on Mar 25, 2003 at 02:10 UTC |