You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@opennlp.apache.org by "Martin Wiesner (Jira)" <ji...@apache.org> on 2024/12/13 06:50:00 UTC
[jira] [Created] (OPENNLP-1668) Avoid multiple DecimalFormat instances in AbstractModel
Martin Wiesner created OPENNLP-1668:
---------------------------------------
Summary: Avoid multiple DecimalFormat instances in AbstractModel
Key: OPENNLP-1668
URL: https://issues.apache.org/jira/browse/OPENNLP-1668
Project: OpenNLP
Issue Type: Improvement
Components: Machine Learning
Affects Versions: 2.5.1
Reporter: Martin Wiesner
Assignee: Martin Wiesner
Fix For: 2.5.2
In line 122 of AbstractModel the very same DecimalFormat instance is created per call of the method getAllOutcomes. This allocates redundant instances and pollutes the heap.
Aims:
- Clean this up.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)