Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve performance of terms query for non-decimal numbers (#66909)
Benchmarking terms query (10000+ terms) on long type, shows that the code part costing most CPU is when trying to judge whether terms have a decimal part because a double mod is executed for each number, regardless of if it has a decimal part. Adding a check before the mod take place to exclude non-decimal numbers.
- Loading branch information