-
Notifications
You must be signed in to change notification settings - Fork 152
BATIK-1271: thread-safe AWTGlyphGeometryCache using ConcurrentHashMap #67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
BATIK-1271: thread-safe AWTGlyphGeometryCache using ConcurrentHashMap #67
Conversation
batik-gvt/src/main/java/org/apache/batik/gvt/font/AWTGlyphGeometryCache.java
Show resolved
Hide resolved
batik-gvt/src/main/java/org/apache/batik/gvt/font/AWTGlyphGeometryCache.java
Outdated
Show resolved
Hide resolved
batik-gvt/src/main/java/org/apache/batik/gvt/font/AWTGlyphGeometryCache.java
Outdated
Show resolved
Hide resolved
xzel23
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @BuZZ-dEE , I am not a project member, so I can neither approve nor reject anything. But I have added some comments that you might want to look into. The new implementation looks much cleaner, I like it.
What would be nice to know:
- have you tried this implementation with your multi-threaded program? I think it should solve the cache issue.
- Do you see any performance degradation? I think it should be negligible, it might even perform better than before in some cases.
efb024b to
f4ff620
Compare
…ntHashMap Co-authored-by: Michael Möller <michael.moeller@cewe.de> Co-authored-by: Sebastian Schlatow <sebastian.schlatow@cewe.de>
f4ff620 to
781ecc5
Compare
@xzel23 We have adopted the proposed change
We're currently testing this.
Not yet. It looks goods so far. We will monitor this. |
https://issues.apache.org/jira/browse/BATIK-1271