I am reading a .properties
file in android which is stored in assets folder. My .properties
file has almost 8000-9000 key value pairs. For loading it is taking almost 4 minutes. Below is my code for reading the .properties
file.
Properties props = new Properties();
AssetManager assets = resources.getAssets();
InputStream inputStream = assets.open("details.properties");
props.load(inputStream);
When executing line props.load(inputStream)
it is taking almost 4 minutes to complete. I am using Eclipse and executing my code in MOTO G mobile in developer mode.
Below is my sample .properties
file values.
AB=HELLO
CD=WORLD
like this there were 8000 key value pairs.
Please let me know is there any problem in my code or any other way to do it fast. Thanks!!