[
https://issues.apache.org/jira/browse/PDFBOX-5574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17702128#comment-17702128
]
ASF subversion and git services commented on PDFBOX-5574:
---------------------------------------------------------
Commit 1908500 from Tilman Hausherr in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1908500 ]
PDFBOX-5574: simplify map operations, by Axel Howind
> simplify map operations
> -----------------------
>
> Key: PDFBOX-5574
> URL: https://issues.apache.org/jira/browse/PDFBOX-5574
> Project: PDFBox
> Issue Type: Improvement
> Reporter: Axel Howind
> Priority: Minor
> Fix For: 3.0.0 PDFBox
>
> Attachments: simplify_map_operations.patch
>
>
> simplify operations on Map instances:
> - avoid unnecessary map.get() calls by iterating over entry sets instead key
> sets where possible
> - avoid accessing the same map entry multiple times by using
> map.computeIfAbsent(), map.putIfAbsent() etc.
> - use bulk operations where possible
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]