I have a quick question; What is more efficient? Storing huge arrays and other data in a config file or just in your java code?
My current project has a 200+ array in it and its code is triggered often, does it matter that theres a huge array in it?
Or is there another solution to this?
Thanks
You probably want to store large amounts of data in a database.
Having said this, a 200+ length array is not a very large array unless the size of the elements is particularly large. Still, it seems a mouthful to write in the code—I might go with a config file or a database.
Another possibility is that the operations which are being performed on the array elements are time-consuming. You may want to check that and possibly even post the operations on codereview.stackexchange.com, or post the code here with specific questions about its optimization.