[
https://issues.apache.org/jira/browse/OPENNLP-1816?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Wiesner resolved OPENNLP-1816.
-------------------------------------
Resolution: Delivered
> Make the ME object design thread-safe and faster
> ------------------------------------------------
>
> Key: OPENNLP-1816
> URL: https://issues.apache.org/jira/browse/OPENNLP-1816
> Project: OpenNLP
> Issue Type: Improvement
> Components: Machine Learning
> Affects Versions: 3.0.0-M1
> Reporter: Kristian Rickert
> Assignee: Richard Zowalla
> Priority: Major
> Fix For: 3.0.0-M3
>
> Time Spent: 12.5h
> Remaining Estimate: 0h
>
> Heya - so I'm working on a PR to make OpenNLP ME objects thread-safe.
> I'll provide the benchmarks in a few moments -
> # Old way — new ME instance per call (what module-chunker does today)
> # New way, instance-per-thread — one ME per thread, reused across calls
> # New way, shared single ME — one ME instance shared across all threads
> So this would mean you don't need to pool ME instances or worry about
> creating new ones every time.
> So far my initial tests show a 1.67x speedup in processing times for the
> tests I'm doing.. I'll have a better benchmark and create the PR soon.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)