By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,798 Members | 1,342 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,798 IT Pros & Developers. It's quick & easy.

Applet performance (URL.openStream)

P: n/a
I've got an applet that performs two functions. One is a URL redirect
which takes 10 seconds (slow development machine), the other does a
URL.openStream and reads through the text returned. The URL.openStream
call itself takes around 28 seconds, while iterating through 150 lines
calling string.indexOf() takes another 15. Any idea why the applet is
performing so slowly. I had originally thought that the redirect and
URL.openStream would take roughly the same amount of time. Thanks for
any and all help.

(PS I wrapped the inputstream in a BufferedReader with the buffer set
to 32K - for a 5K page.)
Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.