Hi All, I moved from Php to java. I am not much familiar with java power. I have couple of questions.
1 - I am reading a directory and that directory has more than 500 files. I am storing file names and contents in hashmap. Please tell me is it good for speed (performance)? If no which other data structure I can use?
2 - I am using above mentioned hashmap in different classes. When I create above mentioned class object and call that function. I think it again process all the files and store it in hashmap ( kill the speed ). Question: Is there any way I can store hashmap as global ? so I can access its data anywhere in the project without calling that function again and again.
3 - I am using JAMA java library to calculate SVD and it took over 1 hour to perform the task on 500 column and 600 rows matrix. Any guess?
Thanks
P.S: I am using Eclipse
EDITED: Is it good to store all file data in memory? or read all data again and again when you need it? Which one is more better for speed?? By the way I need this data in every class :)