libbvg icon indicating copy to clipboard operation
libbvg copied to clipboard

eflist really slow on osx

Open dgleich opened this issue 10 years ago • 4 comments

@yuyongyang800 can you try and reproduce something for me? checkout the branch eflist-refactor. then run eflist_perf ../data/harvard500.offsets 100000

On my mac, this runs at 6000 offsets/sec

On my linux box, this runs at a few million offsets/sec.

Obviously, there is something wrong!

David

dgleich avatar Sep 06 '14 01:09 dgleich

My windows box also gives a few million (3M, to be exact.)

dgleich avatar Sep 06 '14 01:09 dgleich

Let me see what's going on there.

yuyongyang800 avatar Sep 06 '14 01:09 yuyongyang800

Okay, THANKS!

My quick diagnostic pointed to eflist_get as the place where it's slow (not surprising), but then the issue is ... bit_array_get or select_rank?

Maybe it makes sense to profile those two independently to see which is slower on linux/osx?

dgleich avatar Sep 06 '14 01:09 dgleich

The bottleneck is the select_rank() function. I am trying to understand why this is so slow on osx.

yuyongyang800 avatar Sep 06 '14 03:09 yuyongyang800