Re: [PATCH 02/11] libports: use a single hash table

2014-05-13 Thread Samuel Thibault
Justus Winter, le Tue 13 May 2014 12:48:46 +0200, a écrit : > Quoting Samuel Thibault (2014-05-13 01:00:30) > > Justus Winter, le Mon 12 May 2014 12:05:40 +0200, a écrit : > > > Previously, libports used a hash table per port bucket. This makes > > > looking up a port difficult if one does not kno

Re: [PATCH 02/11] libports: use a single hash table

2014-05-13 Thread Justus Winter
Quoting Samuel Thibault (2014-05-13 01:00:30) > Justus Winter, le Mon 12 May 2014 12:05:40 +0200, a écrit : > > Previously, libports used a hash table per port bucket. This makes > > looking up a port difficult if one does not know the port bucket, as > > one has to iterate over all buckets and do

Re: [PATCH 02/11] libports: use a single hash table

2014-05-12 Thread Samuel Thibault
Justus Winter, le Mon 12 May 2014 12:05:40 +0200, a écrit : > Previously, libports used a hash table per port bucket. This makes > looking up a port difficult if one does not know the port bucket, as > one has to iterate over all buckets and do a hash table lookup each. But conversely, this makes

[PATCH 02/11] libports: use a single hash table

2014-05-12 Thread Justus Winter
Previously, libports used a hash table per port bucket. This makes looking up a port difficult if one does not know the port bucket, as one has to iterate over all buckets and do a hash table lookup each. Having to iterate over the buckets makes it necessary to keep a list of all buckets, which h