I have an extremely big properties file with i18n resource bundle. It looks like:
button.browse=Browse
button.cancel=Cancel
button.clear=Clear
Please note that keys are sortable and have similar prefixes and I don't expect to have duplicates. The properties file then loaded via java.util.Properties and just queries with get() and never updated. Since Properties file extends an obsolete Hastable I want to use other Map class for a better performance. I'm fine to use more memory but I need to get values as fast as possible. By default we always using a HashMap but as far I understood if there is a lot of entries it anyway will use nodes as a tree map. So maybe I can just used the TreeMap instead?
Is any map implementation that is better for such kind of data? For example something that uses prefix tree from keys or something like that