I am stuck on a few lines in my java program, which takes too much time (about 20 seconds), and it seems strange to me.
Here are the lines
Map<URL, Integer> res2 = new HashMap<>(); for (URL url : res) { res2.put(url, null); }
Which res is defined as follows:
List<URL> res = new ArrayList<>();
In my program res.size () ~ = 1500
Do you have any ideas on where my problem might have arisen?
Thanks!
source share