Re: [HACKERS] faster version of AllocSetFreeIndex for x86 architecture

2009-06-04 Thread Simon Riggs
On Tue, 2009-06-02 at 23:53 +0900, Atsushi Ogawa wrote: > I made a faster version of AllocSetFreeIndex for x86 architecture. > Results of benchmark script: > Xeon(Core architecture), RedHat EL4, gcc 3.4.6 > bytes : 4 8163264 128 256 512 1024 mix > original: 0.780

Re: [HACKERS] faster version of AllocSetFreeIndex for x86 architecture

2009-06-02 Thread Jeremy Kerr
Hi, > I made a faster version of AllocSetFreeIndex for x86 architecture. Neat, I have a version for PowerPC too. In order to prevent writing multiple copies of AllocSetFreeIndex, I propose that we add a fls() function ("find last set"); this can be defined in an architecture-independent manner

[HACKERS] faster version of AllocSetFreeIndex for x86 architecture

2009-06-02 Thread Atsushi Ogawa
Hi, I made a faster version of AllocSetFreeIndex for x86 architecture. Attached files are benchmark programs and patch file. alloc_test.pl: benchmark script alloc_test.c: benchmark program aset_free_index.patch: patch for util/mmgr/aset.c This benchmark compares the original function with a