Reputation: 323
I am reading a url using
new URL(url).openStream();
and realized that it takes three times longer than what it takes for the browser according to fireBug. The openStream() method takes a little bit more than a second but the browser reads the whole thing in 300 ms. Can some one tell me how I can optimize it in Java?
Upvotes: 1
Views: 187
Reputation: 23962
Using native code.
Problem is that code in Java works not so fast, as browser created using webkit or native code.
Upvotes: 1