Re: [Cython] Hash-based vtables

2012-06-30 Thread Dag Sverre Seljebotn
On 06/30/2012 01:01 PM, Dag Sverre Seljebotn wrote: On 06/30/2012 12:57 PM, Dag Sverre Seljebotn wrote: My time is rather limited but I'm slowly trying to get another SEP 200 in place. Something that hit me, when I tried to make up my mind about whether to have (key, ptr) entries or (key, flags

Re: [Cython] Hash-based vtables

2012-06-30 Thread Dag Sverre Seljebotn
On 06/30/2012 12:57 PM, Dag Sverre Seljebotn wrote: My time is rather limited but I'm slowly trying to get another SEP 200 in place. Something that hit me, when I tried to make up my mind about whether to have (key, ptr) entries or (key, flags, ptr), is that the fast hash table entries can actua

Re: [Cython] Hash-based vtables

2012-06-30 Thread Dag Sverre Seljebotn
My time is rather limited but I'm slowly trying to get another SEP 200 in place. Something that hit me, when I tried to make up my mind about whether to have (key, ptr) entries or (key, flags, ptr), is that the fast hash table entries can actually be arbitrary size. So we could make the table

Re: [Cython] Hash-based vtables

2012-06-19 Thread Sturla Molden
On 12.06.2012 21:46, Dag Sverre Seljebotn wrote: But for much NumPy-using code you'd typically use int32 or int64, and since long is 32 bits on 32-bit Windows and 64 bits on Linux/Mac, choosing long sort of maximises inter-platform variation of signatures... The size of a long is compiler depe

Re: [Cython] Hash-based vtables

2012-06-12 Thread Dag Sverre Seljebotn
On 06/12/2012 09:46 PM, Dag Sverre Seljebotn wrote: On 06/12/2012 08:12 PM, Robert Bradshaw wrote: On Tue, Jun 12, 2012 at 10:21 AM, Dag Sverre Seljebotn wrote: On 06/12/2012 01:01 PM, Dag Sverre Seljebotn wrote: On 06/10/2012 11:53 AM, Robert Bradshaw wrote: On Sun, Jun 10, 2012 at 1:43 A

Re: [Cython] Hash-based vtables

2012-06-12 Thread Dag Sverre Seljebotn
On 06/12/2012 08:12 PM, Robert Bradshaw wrote: On Tue, Jun 12, 2012 at 10:21 AM, Dag Sverre Seljebotn wrote: On 06/12/2012 01:01 PM, Dag Sverre Seljebotn wrote: On 06/10/2012 11:53 AM, Robert Bradshaw wrote: On Sun, Jun 10, 2012 at 1:43 AM, Dag Sverre Seljebotn About signatures, a proble

Re: [Cython] Hash-based vtables

2012-06-12 Thread Robert Bradshaw
On Tue, Jun 12, 2012 at 10:21 AM, Dag Sverre Seljebotn wrote: > On 06/12/2012 01:01 PM, Dag Sverre Seljebotn wrote: >> >> On 06/10/2012 11:53 AM, Robert Bradshaw wrote: >>> >>> On Sun, Jun 10, 2012 at 1:43 AM, Dag Sverre Seljebotn About signatures, a problem I see with following the C ty

Re: [Cython] Hash-based vtables

2012-06-12 Thread Dag Sverre Seljebotn
On 06/12/2012 01:01 PM, Dag Sverre Seljebotn wrote: On 06/10/2012 11:53 AM, Robert Bradshaw wrote: On Sun, Jun 10, 2012 at 1:43 AM, Dag Sverre Seljebotn About signatures, a problem I see with following the C typing is that the signature "ill" wouldn't hash the same as "iii" on 32-bit Windows an

Re: [Cython] Hash-based vtables

2012-06-12 Thread Dag Sverre Seljebotn
On 06/10/2012 11:53 AM, Robert Bradshaw wrote: On Sun, Jun 10, 2012 at 1:43 AM, Dag Sverre Seljebotn About signatures, a problem I see with following the C typing is that the signature "ill" wouldn't hash the same as "iii" on 32-bit Windows and "iqq" on 32-bit Linux, and so on. I think that woul

Re: [Cython] Hash-based vtables

2012-06-10 Thread Robert Bradshaw
On Sun, Jun 10, 2012 at 1:43 AM, Dag Sverre Seljebotn wrote: > On 06/10/2012 10:23 AM, Robert Bradshaw wrote: >> >> On Sun, Jun 10, 2012 at 1:00 AM, Dag Sverre Seljebotn >>  wrote: >>> >>> On 06/10/2012 09:34 AM, Robert Bradshaw wrote: On Sun, Jun 10, 2012 at 12:14 AM, Dag Sverre S

Re: [Cython] Hash-based vtables

2012-06-10 Thread Dag Sverre Seljebotn
On 06/10/2012 10:23 AM, Robert Bradshaw wrote: On Sun, Jun 10, 2012 at 1:00 AM, Dag Sverre Seljebotn wrote: On 06/10/2012 09:34 AM, Robert Bradshaw wrote: On Sun, Jun 10, 2012 at 12:14 AM, Dag Sverre Seljebotn wrote: Robert Bradshawwrote: On Fri, Jun 8, 2012 at 10:45 PM, Dag Sv

Re: [Cython] Hash-based vtables

2012-06-10 Thread Dag Sverre Seljebotn
Dag Sverre Seljebotn wrote: >On 06/10/2012 09:34 AM, Robert Bradshaw wrote: >> On Sun, Jun 10, 2012 at 12:14 AM, Dag Sverre Seljebotn >> wrote: >>> >>> >>> Robert Bradshaw wrote: >>> On Fri, Jun 8, 2012 at 10:45 PM, Dag Sverre Seljebotn wrote: > I'd love to not do interning,

Re: [Cython] Hash-based vtables

2012-06-10 Thread Robert Bradshaw
On Sun, Jun 10, 2012 at 1:00 AM, Dag Sverre Seljebotn wrote: > On 06/10/2012 09:34 AM, Robert Bradshaw wrote: >> >> On Sun, Jun 10, 2012 at 12:14 AM, Dag Sverre Seljebotn >>  wrote: >>> >>> >>> >>> Robert Bradshaw  wrote: >>> On Fri, Jun 8, 2012 at 10:45 PM, Dag Sverre Seljebotn  wrote

Re: [Cython] Hash-based vtables

2012-06-10 Thread Dag Sverre Seljebotn
On 06/10/2012 09:34 AM, Robert Bradshaw wrote: On Sun, Jun 10, 2012 at 12:14 AM, Dag Sverre Seljebotn wrote: Robert Bradshaw wrote: On Fri, Jun 8, 2012 at 10:45 PM, Dag Sverre Seljebotn wrote: I'd love to not do interning, but I see no way around it. No, I want to use the lower 64 bi

Re: [Cython] Hash-based vtables

2012-06-10 Thread Robert Bradshaw
On Sun, Jun 10, 2012 at 12:14 AM, Dag Sverre Seljebotn wrote: > > > Robert Bradshaw wrote: > >>On Fri, Jun 8, 2012 at 10:45 PM, Dag Sverre Seljebotn >> wrote: >>> On 06/09/2012 03:21 AM, Robert Bradshaw wrote: On Fri, Jun 8, 2012 at 2:12 PM, Dag Sverre Seljebotn > There's still the

Re: [Cython] Hash-based vtables

2012-06-10 Thread Dag Sverre Seljebotn
Robert Bradshaw wrote: >On Fri, Jun 8, 2012 at 10:45 PM, Dag Sverre Seljebotn > wrote: >> On 06/09/2012 03:21 AM, Robert Bradshaw wrote: >>> >>> On Fri, Jun 8, 2012 at 2:12 PM, Dag Sverre Seljebotn There's still the indirection through SEP 200 (extensibletype >slots). We can get

Re: [Cython] Hash-based vtables

2012-06-10 Thread Robert Bradshaw
On Fri, Jun 8, 2012 at 10:45 PM, Dag Sverre Seljebotn wrote: > On 06/09/2012 03:21 AM, Robert Bradshaw wrote: >> >> On Fri, Jun 8, 2012 at 2:12 PM, Dag Sverre Seljebotn >>> There's still the indirection through SEP 200 (extensibletype slots). We >>> can >>> get rid of that very easily by just maki

Re: [Cython] Hash-based vtables

2012-06-08 Thread Dag Sverre Seljebotn
On 06/09/2012 08:00 AM, Dag Sverre Seljebotn wrote: On 06/09/2012 07:45 AM, Dag Sverre Seljebotn wrote: On 06/09/2012 03:21 AM, Robert Bradshaw wrote: On Fri, Jun 8, 2012 at 2:12 PM, Dag Sverre Seljebotn There's still the indirection through SEP 200 (extensibletype slots). We can get rid of th

Re: [Cython] Hash-based vtables

2012-06-08 Thread Dag Sverre Seljebotn
On 06/09/2012 07:45 AM, Dag Sverre Seljebotn wrote: On 06/09/2012 03:21 AM, Robert Bradshaw wrote: On Fri, Jun 8, 2012 at 2:12 PM, Dag Sverre Seljebotn There's still the indirection through SEP 200 (extensibletype slots). We can get rid of that very easily by just making that table and the hash

Re: [Cython] Hash-based vtables

2012-06-08 Thread Dag Sverre Seljebotn
On 06/09/2012 03:21 AM, Robert Bradshaw wrote: On Fri, Jun 8, 2012 at 2:12 PM, Dag Sverre Seljebotn wrote: On 06/07/2012 12:35 PM, Dag Sverre Seljebotn wrote: On 06/07/2012 12:20 PM, Dag Sverre Seljebotn wrote: On 06/07/2012 12:26 AM, Robert Bradshaw wrote: On Wed, Jun 6, 2012 at 2:36 PM

Re: [Cython] Hash-based vtables

2012-06-08 Thread Robert Bradshaw
On Fri, Jun 8, 2012 at 2:12 PM, Dag Sverre Seljebotn wrote: > On 06/07/2012 12:35 PM, Dag Sverre Seljebotn wrote: >> >> On 06/07/2012 12:20 PM, Dag Sverre Seljebotn wrote: >>> >>> On 06/07/2012 12:26 AM, Robert Bradshaw wrote: On Wed, Jun 6, 2012 at 2:36 PM, Dag Sverre Seljebotn wr

Re: [Cython] Hash-based vtables

2012-06-08 Thread Dag Sverre Seljebotn
On 06/07/2012 12:35 PM, Dag Sverre Seljebotn wrote: On 06/07/2012 12:20 PM, Dag Sverre Seljebotn wrote: On 06/07/2012 12:26 AM, Robert Bradshaw wrote: On Wed, Jun 6, 2012 at 2:36 PM, Dag Sverre Seljebotn wrote: On 06/06/2012 11:16 PM, Robert Bradshaw wrote: On Wed, Jun 6, 2012 at 1:57 PM, D

Re: [Cython] Hash-based vtables

2012-06-07 Thread Dag Sverre Seljebotn
On 06/07/2012 12:20 PM, Dag Sverre Seljebotn wrote: On 06/07/2012 12:26 AM, Robert Bradshaw wrote: On Wed, Jun 6, 2012 at 2:36 PM, Dag Sverre Seljebotn wrote: On 06/06/2012 11:16 PM, Robert Bradshaw wrote: On Wed, Jun 6, 2012 at 1:57 PM, Dag Sverre Seljebotn wrote: On 06/06/2012 10:41 PM,

Re: [Cython] Hash-based vtables

2012-06-07 Thread Dag Sverre Seljebotn
On 06/07/2012 12:45 PM, Dag Sverre Seljebotn wrote: On 06/06/2012 11:00 PM, Robert Bradshaw wrote: On Tue, Jun 5, 2012 at 2:41 PM, Dag Sverre Seljebotn wrote: Is the goal then to avoid having to have an interning registry? Yes, and to avoid invoking an expensive hash function at runtime in o

Re: [Cython] Hash-based vtables

2012-06-07 Thread Dag Sverre Seljebotn
On 06/06/2012 11:00 PM, Robert Bradshaw wrote: On Tue, Jun 5, 2012 at 2:41 PM, Dag Sverre Seljebotn wrote: Is the goal then to avoid having to have an interning registry? Yes, and to avoid invoking an expensive hash function at runtime in order to achieve good distribution. I don't underst

Re: [Cython] Hash-based vtables

2012-06-07 Thread Dag Sverre Seljebotn
On 06/07/2012 12:20 PM, Dag Sverre Seljebotn wrote: On 06/07/2012 12:26 AM, Robert Bradshaw wrote: On Wed, Jun 6, 2012 at 2:36 PM, Dag Sverre Seljebotn wrote: On 06/06/2012 11:16 PM, Robert Bradshaw wrote: On Wed, Jun 6, 2012 at 1:57 PM, Dag Sverre Seljebotn wrote: On 06/06/2012 10:41 PM,

Re: [Cython] Hash-based vtables

2012-06-07 Thread Dag Sverre Seljebotn
On 06/07/2012 12:26 AM, Robert Bradshaw wrote: On Wed, Jun 6, 2012 at 2:36 PM, Dag Sverre Seljebotn wrote: On 06/06/2012 11:16 PM, Robert Bradshaw wrote: On Wed, Jun 6, 2012 at 1:57 PM, Dag Sverre Seljebotn wrote: On 06/06/2012 10:41 PM, Dag Sverre Seljebotn wrote: On 06/05/2012 12:

Re: [Cython] Hash-based vtables

2012-06-06 Thread Robert Bradshaw
On Wed, Jun 6, 2012 at 2:36 PM, Dag Sverre Seljebotn wrote: > On 06/06/2012 11:16 PM, Robert Bradshaw wrote: >> >> On Wed, Jun 6, 2012 at 1:57 PM, Dag Sverre Seljebotn >>  wrote: >>> >>> On 06/06/2012 10:41 PM, Dag Sverre Seljebotn wrote: On 06/05/2012 12:30 AM, Robert Bradshaw wro

Re: [Cython] Hash-based vtables

2012-06-06 Thread Dag Sverre Seljebotn
Dag Sverre Seljebotn wrote: >On 06/06/2012 11:16 PM, Robert Bradshaw wrote: >> On Wed, Jun 6, 2012 at 1:57 PM, Dag Sverre Seljebotn >> wrote: >>> On 06/06/2012 10:41 PM, Dag Sverre Seljebotn wrote: On 06/05/2012 12:30 AM, Robert Bradshaw wrote: > > I just found http://cmph.s

Re: [Cython] Hash-based vtables

2012-06-06 Thread Dag Sverre Seljebotn
On 06/06/2012 11:16 PM, Robert Bradshaw wrote: On Wed, Jun 6, 2012 at 1:57 PM, Dag Sverre Seljebotn wrote: On 06/06/2012 10:41 PM, Dag Sverre Seljebotn wrote: On 06/05/2012 12:30 AM, Robert Bradshaw wrote: I just found http://cmph.sourceforge.net/ which looks quite interesting. Though the

Re: [Cython] Hash-based vtables

2012-06-06 Thread Robert Bradshaw
On Wed, Jun 6, 2012 at 1:57 PM, Dag Sverre Seljebotn wrote: > On 06/06/2012 10:41 PM, Dag Sverre Seljebotn wrote: >> >> On 06/05/2012 12:30 AM, Robert Bradshaw wrote: >>> >>> I just found http://cmph.sourceforge.net/ which looks quite >>> interesting. Though the resulting hash functions are suppos

Re: [Cython] Hash-based vtables

2012-06-06 Thread Robert Bradshaw
On Tue, Jun 5, 2012 at 2:41 PM, Dag Sverre Seljebotn wrote: > On 06/05/2012 10:50 PM, Robert Bradshaw wrote: >> >> On Tue, Jun 5, 2012 at 1:10 PM, Dag Sverre Seljebotn >>  wrote: >>> >>> On 06/04/2012 11:43 PM, Robert Bradshaw wrote: On Mon, Jun 4, 2012 at 1:55 PM, Dag Sverre Selje

Re: [Cython] Hash-based vtables

2012-06-06 Thread Dag Sverre Seljebotn
On 06/06/2012 10:41 PM, Dag Sverre Seljebotn wrote: On 06/05/2012 12:30 AM, Robert Bradshaw wrote: I just found http://cmph.sourceforge.net/ which looks quite interesting. Though the resulting hash functions are supposedly cheap, I have the feeling that branching is considered cheap in this cont

Re: [Cython] Hash-based vtables

2012-06-06 Thread Dag Sverre Seljebotn
On 06/05/2012 12:30 AM, Robert Bradshaw wrote: I just found http://cmph.sourceforge.net/ which looks quite interesting. Though the resulting hash functions are supposedly cheap, I have the feeling that branching is considered cheap in this context. Actually, this lead was *very* promising. I be

Re: [Cython] Hash-based vtables

2012-06-06 Thread Dag Sverre Seljebotn
On 06/06/2012 11:11 AM, Dag Sverre Seljebotn wrote: Stefan Behnel wrote: mark florisson, 05.06.2012 22:33: It doesn't even necessarily have to be about running user code, a user could craft data input which causes such a situation. For instance, let's say we have a just-in-time specialize

Re: [Cython] Hash-based vtables

2012-06-06 Thread mark florisson
On 6 June 2012 10:11, Dag Sverre Seljebotn wrote: > > > Stefan Behnel wrote: > >>mark florisson, 05.06.2012 22:33: >>> It doesn't even necessarily have to be about running user code, a >>user >>> could craft data input which causes such a situation. For instance, >>> let's say we have a just-in-t

Re: [Cython] Hash-based vtables

2012-06-06 Thread Dag Sverre Seljebotn
Stefan Behnel wrote: >mark florisson, 05.06.2012 22:33: >> It doesn't even necessarily have to be about running user code, a >user >> could craft data input which causes such a situation. For instance, >> let's say we have a just-in-time specializer which specializes a >> function for the runti

Re: [Cython] Hash-based vtables

2012-06-06 Thread Stefan Behnel
mark florisson, 05.06.2012 22:33: > It doesn't even necessarily have to be about running user code, a user > could craft data input which causes such a situation. For instance, > let's say we have a just-in-time specializer which specializes a > function for the runtime input types, and the types d

Re: [Cython] Hash-based vtables

2012-06-05 Thread Dag Sverre Seljebotn
On 06/05/2012 10:50 PM, Robert Bradshaw wrote: On Tue, Jun 5, 2012 at 1:10 PM, Dag Sverre Seljebotn wrote: On 06/04/2012 11:43 PM, Robert Bradshaw wrote: On Mon, Jun 4, 2012 at 1:55 PM, Dag Sverre Seljebotn wrote: On 06/04/2012 09:44 PM, Dag Sverre Seljebotn wrote: Me and Robert had

Re: [Cython] Hash-based vtables

2012-06-05 Thread Robert Bradshaw
On Tue, Jun 5, 2012 at 1:10 PM, Dag Sverre Seljebotn wrote: > On 06/04/2012 11:43 PM, Robert Bradshaw wrote: >> >> On Mon, Jun 4, 2012 at 1:55 PM, Dag Sverre Seljebotn >>  wrote: >>> >>> On 06/04/2012 09:44 PM, Dag Sverre Seljebotn wrote: Me and Robert had a long discussion on the

Re: [Cython] Hash-based vtables

2012-06-05 Thread mark florisson
On 5 June 2012 20:33, Dag Sverre Seljebotn wrote: > On 06/05/2012 08:02 PM, mark florisson wrote: >> >> On 5 June 2012 18:09, Dag Sverre Seljebotn >>  wrote: >>> >>> On 06/05/2012 07:01 PM, Dag Sverre Seljebotn wrote: On 06/05/2012 09:25 AM, Stefan Behnel wrote: > > > Da

Re: [Cython] Hash-based vtables

2012-06-05 Thread Dag Sverre Seljebotn
On 06/04/2012 11:43 PM, Robert Bradshaw wrote: On Mon, Jun 4, 2012 at 1:55 PM, Dag Sverre Seljebotn wrote: On 06/04/2012 09:44 PM, Dag Sverre Seljebotn wrote: Me and Robert had a long discussion on the NumFOCUS list about this already, but I figured it was better to continue it and provide m

Re: [Cython] Hash-based vtables

2012-06-05 Thread Dag Sverre Seljebotn
On 06/05/2012 08:02 PM, mark florisson wrote: On 5 June 2012 18:09, Dag Sverre Seljebotn wrote: On 06/05/2012 07:01 PM, Dag Sverre Seljebotn wrote: On 06/05/2012 09:25 AM, Stefan Behnel wrote: Dag Sverre Seljebotn, 04.06.2012 21:44: This can cause crashes/stack smashes etc. if there's low

Re: [Cython] Hash-based vtables

2012-06-05 Thread mark florisson
On 5 June 2012 18:09, Dag Sverre Seljebotn wrote: > On 06/05/2012 07:01 PM, Dag Sverre Seljebotn wrote: >> >> On 06/05/2012 09:25 AM, Stefan Behnel wrote: >>> >>> Dag Sverre Seljebotn, 04.06.2012 21:44: This can cause crashes/stack smashes etc. if there's lower-64bit-of-md5 collisio

Re: [Cython] Hash-based vtables

2012-06-05 Thread Dag Sverre Seljebotn
On 06/05/2012 07:01 PM, Dag Sverre Seljebotn wrote: On 06/05/2012 09:25 AM, Stefan Behnel wrote: Dag Sverre Seljebotn, 04.06.2012 21:44: This can cause crashes/stack smashes etc. if there's lower-64bit-of-md5 collisions, but a) the probability is incredibly small, b) it would only matter in sit

Re: [Cython] Hash-based vtables

2012-06-05 Thread Dag Sverre Seljebotn
On 06/05/2012 09:25 AM, Stefan Behnel wrote: Dag Sverre Seljebotn, 04.06.2012 21:44: This can cause crashes/stack smashes etc. if there's lower-64bit-of-md5 collisions, but a) the probability is incredibly small, b) it would only matter in situations that should cause an Attribut

Re: [Cython] Hash-based vtables

2012-06-05 Thread Dag Sverre Seljebotn
On 06/05/2012 11:16 AM, Robert Bradshaw wrote: On Tue, Jun 5, 2012 at 1:07 AM, Stefan Behnel wrote: Dag Sverre Seljebotn, 05.06.2012 00:07: The C FAQ says 'if you know the contents of your hash table up front you can devise a perfect hash', but no details, probably just hand-waving. 128 bits

Re: [Cython] Hash-based vtables

2012-06-05 Thread Robert Bradshaw
On Tue, Jun 5, 2012 at 1:07 AM, Stefan Behnel wrote: > Dag Sverre Seljebotn, 05.06.2012 00:07: >> The C FAQ says 'if you know the contents of your hash table up front you can >> devise a perfect hash', but no details, probably just hand-waving. >> >> 128 bits gives more entropy for perfect hashin

Re: [Cython] Hash-based vtables

2012-06-05 Thread Stefan Behnel
Dag Sverre Seljebotn, 05.06.2012 00:07: > The C FAQ says 'if you know the contents of your hash table up front you can > devise a perfect hash', but no details, probably just hand-waving. > > 128 bits gives more entropy for perfect hashing: some but not much since each > shift r is hardwired to

Re: [Cython] Hash-based vtables

2012-06-05 Thread Stefan Behnel
Dag Sverre Seljebotn, 04.06.2012 21:44: >This can cause crashes/stack smashes >etc. if there's lower-64bit-of-md5 collisions, but a) the >probability is incredibly small, b) it would only matter in >situations that should cause an AttributeError anyway, c) if we >really care, we

Re: [Cython] Hash-based vtables

2012-06-04 Thread Robert Bradshaw
On Mon, Jun 4, 2012 at 3:07 PM, Dag Sverre Seljebotn wrote: > > > Robert Bradshaw wrote: > >>On Mon, Jun 4, 2012 at 1:55 PM, Dag Sverre Seljebotn >> wrote: >>> On 06/04/2012 09:44 PM, Dag Sverre Seljebotn wrote: Me and Robert had a long discussion on the NumFOCUS list about this al

Re: [Cython] Hash-based vtables

2012-06-04 Thread Dag Sverre Seljebotn
Robert Bradshaw wrote: >On Mon, Jun 4, 2012 at 1:55 PM, Dag Sverre Seljebotn > wrote: >> On 06/04/2012 09:44 PM, Dag Sverre Seljebotn wrote: >>> >>> Me and Robert had a long discussion on the NumFOCUS list about this >>> already, but I figured it was better to continue it and provide more >>> i

Re: [Cython] Hash-based vtables

2012-06-04 Thread Robert Bradshaw
On Mon, Jun 4, 2012 at 1:55 PM, Dag Sverre Seljebotn wrote: > On 06/04/2012 09:44 PM, Dag Sverre Seljebotn wrote: >> >> Me and Robert had a long discussion on the NumFOCUS list about this >> already, but I figured it was better to continue it and provide more >> in-depth benchmark results here. >>

Re: [Cython] Hash-based vtables

2012-06-04 Thread Dag Sverre Seljebotn
On 06/04/2012 09:44 PM, Dag Sverre Seljebotn wrote: Me and Robert had a long discussion on the NumFOCUS list about this already, but I figured it was better to continue it and provide more in-depth benchmark results here. It's basically a new idea of how to provide a vtable based on perfect hash

[Cython] Hash-based vtables

2012-06-04 Thread Dag Sverre Seljebotn
Me and Robert had a long discussion on the NumFOCUS list about this already, but I figured it was better to continue it and provide more in-depth benchmark results here. It's basically a new idea of how to provide a vtable based on perfect hashing, which should be a lot simpler to implement than