Xuesen Liang created HADOOP-17757: ------------------------------------- Summary: Reduce lock contention in properties of Configuration Key: HADOOP-17757 URL: https://issues.apache.org/jira/browse/HADOOP-17757 Project: Hadoop Common Issue Type: Improvement Components: common Reporter: Xuesen Liang
The *properties* field of class *Configuration* is guard by _synchronized_, and its type java.util.Property is a sub class of java.util.*Hashtable*, which methods are all synchronized. These are bad for multithread performance. The properties field should be replaced by a *HashMap<String, String>* with a *ReentrantReadWriteLock*, then all _get()_ related operations can be parallel guard by ReadLock, and _set/load_ operations can be guard by WriteLock. This is better for performance. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: common-dev-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-dev-h...@hadoop.apache.org