Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: Fastest data structure compare?

by eserte (Deacon)
on Oct 08, 2009 at 12:43 UTC ( #799948=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Fastest data structure compare?
in thread Fastest data structure compare?

Encode may help in the utf8 case, but not in the case of different integer representation (as mentioned in the Storable manpage):

#!/usr/bin/perl use Data::Compare qw(); use Storable qw(nfreeze); use Test::More qw(no_plan); my $data1 = { foobar => 1 }; my $data2 = { foobar => "1" }; $Storable::canonical = 1; is_deeply($data1, $data2, "is_deeply test"); ok(Data::Compare::Compare($data1, $data2), "Data::Compare"); ok(nfreeze($data1) eq nfreeze($data2), "storable serialized");


Comment on Re^3: Fastest data structure compare?
Download Code
Replies are listed 'Best First'.
Re^4: Fastest data structure compare?
by Anonymous Monk on Oct 08, 2009 at 12:50 UTC
    Great, you've read the bug section :)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (10)
As of 2015-07-28 12:03 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 (254 votes), past polls