Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Bit handling in Perl

by BrowserUk (Patriarch)
on Oct 10, 2014 at 09:25 UTC ( [id://1103387]=note: print w/replies, xml ) Need Help??


in reply to Re: Bit handling in Perl
in thread Bit handling in Perl

If I understand the OP correctly; He seems to want to compare all of the bits in each record in file one, with the corresponding bits in every (50M) record of file two.

Whilst iterating over the 880 bits in each vector using a loop and vec is certainly possible; it is really quite slow.

Indeed, it is much, much slower than performing such comparisons en-masse using perl's bit-wise boolean string operations.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-24 02:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found