lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tanapol Nearunchorn <>
Subject How to optimise TF and DF computation within Scorer
Date Fri, 16 Nov 2018 06:38:32 GMT

I'm building a custom scorer for LTR module.
Right now, I want to optimise performance of TF and DF computation in
scorer class.
The profiler shown that is a hot path, it looks like to
take some amount of time to seek in a disk to find a statistic about terms.

Here is a sample gist of my LTR Feature implementation:
I also attached a profiling result screenshot in the gist too.

I'm not sure that caching computation results of TF and DF to reduce disk
seek is a good idea.
Is there anyway to increase performance of computation?

Best regards,

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message