in reply to Re: mapping lists
in thread mapping lists
I set the size down and did one more optimization, as follows:
I added a counter to the reader function and got the following output:my $lo_pos = binary_search(0,$#F,$lo,\&reader,\@F,2); my $hi_pos = binary_search($lo_pos,$#F,$hi,\&reader,\@F,2);
This is compared to a total of 78 probes the original way.Did 6 probes for low Did 6 probes for high 32,33,34,35 Did 6 probes for low Did 7 probes for high 50,51,52,53,54,55,56,57,58,59,60,61,62,63,64
|
|---|