Re: [ovs-dev] json: Serialize strings using a lookup table

2016-10-05 Thread Ben Pfaff
I just noticed this email. It sounds beneficial, but no patch was included. Do you want to send the patch? On Wed, Sep 07, 2016 at 08:58:02PM +, Rodriguez Betancourt, Esteban wrote: > The existing implementation uses a switch with > many conditions, that when compiled is translated > to a no

[ovs-dev] json: Serialize strings using a lookup table

2016-09-07 Thread Rodriguez Betancourt, Esteban
The existing implementation uses a switch with many conditions, that when compiled is translated to a not optimal series of conditional jumps. With a lookup table the generated code has less conditional jumps, that should translate in improving the CPU ability to predict the jumps. Performance Co