A customized implementation of java.util.HashMap
designed to operate in a multithreaded environment where the large majority of method calls are read-only, instead of structural changes. Read calls are non-synchronized and write calls perform the following steps:
NOTE: If you are creating and accessing a HashMap
only within a single thread, you should use java.util.HashMap
directly (with no synchronization), for maximum performance.
A customized implementation of java.util.HashMap
designed to operate in a multithreaded environment where the large majority of method calls are read-only, instead of structural changes. When operating in "fast" mode, read calls are non-synchronized and write calls perform the following steps:
When first created, objects of this class default to "slow" mode, where all accesses of any type are synchronized but no cloning takes place. This is appropriate for initially populating the collection, followed by a switch to "fast" mode (by calling setFast(true)
) after initialization is complete.
NOTE: If you are creating and accessing a HashMap
only within a single thread, you should use java.util.HashMap
directly (with no synchronization), for maximum performance.
A customized implementation of java.util.HashMap
designed to operate in a multithreaded environment where the large majority of method calls are read-only, instead of structural changes. Read calls are non-synchronized and write calls perform the following steps:
NOTE: If you are creating and accessing a HashMap
only within a single thread, you should use java.util.HashMap
directly (with no synchronization), for maximum performance.
A customized implementation of java.util.HashMap
designed to operate in a multithreaded environment where the large majority of method calls are read-only, instead of structural changes. Read calls are non-synchronized and write calls perform the following steps:
NOTE: If you are creating and accessing a HashMap
only within a single thread, you should use java.util.HashMap
directly (with no synchronization), for maximum performance.
|
|