On 09/11/2014 04:48 AM, Dave Anderson wrote:
Hello Pan,
I've updated the patch I attached yesterday with a change that
caches the most-recent tgid search result. From ~70% to ~90% of
the time, either the last tgid entry or the very next one in the
tgid_array is the one being searched for, so it's not necessary
to call bsearch() every time.
yes, you are right. I have not considered the problem
which
calling bsearch() every time.
thank you very much.
"help -t" will show the cache-hit
statistics.
Thanks,
Dave