Re: [ovs-dev] [PATCH v2] lib/bitmap: Faster bitmap functions.

2014-10-07 Thread Jarno Rajahalme
Pushed to master with Co-authored-by relationship, Jarno On Oct 6, 2014, at 3:54 PM, Ben Pfaff wrote: > On Fri, Oct 03, 2014 at 01:22:07PM -0700, Jarno Rajahalme wrote: >> Replace bitwise loops with a single operation, inline all bitmap >> functions. Inlining allows the compiler to remove un

Re: [ovs-dev] [PATCH v2] lib/bitmap: Faster bitmap functions.

2014-10-06 Thread Ben Pfaff
On Fri, Oct 03, 2014 at 01:22:07PM -0700, Jarno Rajahalme wrote: > Replace bitwise loops with a single operation, inline all bitmap > functions. Inlining allows the compiler to remove unnecessary code > due to some parameters being compile-time constants. > > Before: > > $ tests/ovstest test-bit

[ovs-dev] [PATCH v2] lib/bitmap: Faster bitmap functions.

2014-10-03 Thread Jarno Rajahalme
Replace bitwise loops with a single operation, inline all bitmap functions. Inlining allows the compiler to remove unnecessary code due to some parameters being compile-time constants. Before: $ tests/ovstest test-bitmap benchmark 100 bitmap equal:341 ms bitmap scan: 8089 ms After: $