-
Notifications
You must be signed in to change notification settings - Fork 795
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TIKA-2520 optimize OptimaizeLangDetector default loadModel()
When using tika-server, every single call triggers loadModel and this method is very CPU intensive. Optimaize uses immutable objects so we can easily reuse the default model when no configuration is provided, it's a 20x improvement for my workload.
- Loading branch information
Showing
1 changed file
with
36 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters