I’m setting up a new server, and want to put huge amount of elements to a hashmap at the server's initial time for save initial time, so I want the hashmap's put method is thread-safe. But after the initial time, the hashmap will no change and readonly, so I want the hashmap's get method is thread-unsafe is enough to get better performance.
If I use ConcurrentHashMap to set up the server, it will not good enough when get elements with multi-thread.
So is there any hashmap that put method with thread-safe and get method with thread-unsafe.