From: SourceForge.net <no...@so...> - 2010-05-14 18:30:05
|
Bugs item #3001745, was opened at 2010-05-14 20:30 Message generated for change (Tracker Item Submitted) made by grnull You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=952178&aid=3001745&group_id=195122 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Johann Burkard (grnull) Assigned to: Nobody/Anonymous (nobody) Summary: org.cyberneko.html.HTMLEntities blocks under load Initial Comment: In HTMLEntities, you are using the Properties class which extends Hashtable. The methods in Hashtable are synchronized which causes threads to be blocked in org.cyberneko.html.HTMLEntities#get(String). Since the ENTITIES field isn't modified after the static initializer, you should replace it with something like Collections.unmodifiableMap(new TreeMap<String, String>()) -- or HashMap if it's faster. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=952178&aid=3001745&group_id=195122 |