Sorry, I should have been a little more specific. I meant faster lookups in terms of database index, such as MySQL with InnoDB.
Cal On Mon, Jul 18, 2011 at 4:13 PM, Javier Guerra Giraldez <jav...@guerrag.com>wrote: > On Mon, Jul 18, 2011 at 9:56 AM, Cal Leeming [Simplicity Media Ltd] > <cal.leem...@simplicitymedialtd.co.uk> wrote: > > It stores the IP address in integer form, meaning the lookups on large > > tables are much faster: > > are they? hashtables shouldn't be too sensitive to key size, as > long as the string size stays bounded... like on IP addresses (max 15 > chars) > > of course, i don't know about the specific dict implementation on > Python. Sounds like a job for a microbenchmark! > > -- > Javier > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.