Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: Storing and searching sets of IP address ranges

by acferen (Sexton)
on Jul 07, 2010 at 12:47 UTC ( #848446=note: print w/replies, xml ) Need Help??


in reply to Re^2: Storing and searching sets of IP address ranges
in thread Storing and searching sets of IP address ranges

I like this as a quick way to get something working, but I think I may ultimately need to go with your first suggestion and change the operators. I already have IP addresses as 4/16 byte entities so changing the operators will save [un]pack calls for each lookup.

Thanks,
-Andrew

  • Comment on Re^3: Storing and searching sets of IP address ranges

Replies are listed 'Best First'.
Re^4: Storing and searching sets of IP address ranges
by ikegami (Patriarch) on Jul 07, 2010 at 15:47 UTC
    It's not using unpack that's gonna slow down that solution, it's using overloaded operators.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (2)
As of 2022-11-28 02:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?