in reply to Working with large amount of data
If it's the former, you can create a bit vector, each bit corresponding to one IP address. An IPv4 address has 4 bytes or 32 bites, so you need 2**32/8 = 0.5G bytes. See vec for a function that manipulates bit vectors in Perl.
You can also use out-of-memory storage such as GDBM_File, but that will probably slow down your program.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Working with large amount of data
by tilly (Archbishop) on Sep 21, 2009 at 06:50 UTC |