[
https://issues.apache.org/jira/browse/OPENNLP-397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13154209#comment-13154209
]
Joern Kottmann commented on OPENNLP-397:
----------------------------------------
We used a java.util.HashMap before but got a big performance regression because
it needs more memory than our current solution. I believe this is because the
map doesn't fit anymore into the CPU cache.
Did you just run a profiler, or coud also measure an actual speed up in
throughput? Which CPU does your machine have? And which model did you use?
I also did measurements to get the difference between the java.util.HashMap and
ours and couldn't measure a difference.
> IndexHashTable can be improved
> ------------------------------
>
> Key: OPENNLP-397
> URL: https://issues.apache.org/jira/browse/OPENNLP-397
> Project: OpenNLP
> Issue Type: Improvement
> Components: Maxent
> Affects Versions: maxent-3.0.3-incubating
> Reporter: Catalin Mititelu
> Priority: Minor
> Labels: patch
> Attachments: patch-IndexHashTable.txt
>
>
> Running a profiler on POSTagger with an maxent model showed me a lot of CPU
> usage on IndexHashTable class. This class can be optimized to be faster.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira