473,396 Members | 1,775 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Applet performance (URL.openStream)

Hi
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.

Muhammed
(PS I wrapped the inputstream in a BufferedReader with the buffer set
to 32K - for a 5K page.)
Jul 17 '05 #1
0 2268

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: James | last post by:
I am trying to set up a PHP file that receives data from an applet via Java's URL object (this sends a URL so I can place PHP attributes in this), gets a set of numbers from a database table and...
1
by: nathanlaan | last post by:
This is the stupidest thing I have ever seen. Java 1.2, 1.3, and 1.4.1, and 1.4.2 all define the Applet.getDocumentBase() method differently! How am I supposed to get the directory of the document...
5
by: java_helloworld | last post by:
I am trying to print from an applet using the Java Print API. If I run the applet on appletviewer then things work fine i.e. I am able to get the print out. If I run the applet on a browser then...
1
by: SPG | last post by:
Hi, We have an applet that has to support the SUN VMs as well as the MS VM. The applet receives updates from a server (via tcp or http) and wraps them up as objects and passes them using the...
0
by: ankur | last post by:
WHEN I RUN THIS WEB APPLICATION ON Tomcat5.5.9 SERVER MY HttpChatApplet sccessfully Loaded from ChatDispatch but running on some another PC HttpChatApplet not loaded my Coad ...
2
dmjpro
by: dmjpro | last post by:
Hi friends .. today i started to learn URL class handling. actually today morning JOASH replied to an answer that using URL an input stream can be opened. a diiferent server side file can be...
1
by: MikeofPet | last post by:
I am creating an HTML form and would like the user to have the capability to browse to a file and when "Submit" is selected, the file would be anonymous FTPd to my server. I realize this can be...
4
by: coolsti | last post by:
I have an applet that accepts data as a stream from a php script using the following code snippet: String dataendpoint = "http://phpfunction.php"; URL url = new...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.