aspose file tools*
The moose likes Applets and the fly likes Performance of Applet? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Performance of Applet?" Watch "Performance of Applet?" New topic
Author

Performance of Applet?

Mohamed Em
Greenhorn

Joined: Jul 30, 2009
Posts: 6
Hi everybody,

I would like create a working process using an applet but we can often read that an applet is not an object very fast and competitive. My working process can't be slow.
The process have to :
  • Display some datas in different table
  • Modified those datas
  • Allow hot keys
  • Connect with a distant server
  • Read xml files, Analyse datas and apply different actions as send a message to the distant server
  • Consider differents timers


  • This process will be used only by few persons (10 max).

    Do you think that the applet will be enough fast to send datas to the distant server for example and display the answer on the applet?

    Thank you
    Ulf Dittmer
    Marshal

    Joined: Mar 22, 2005
    Posts: 42641
        
      65
    Applets can be very fast. They can also be very slow. It depends entirely on what they are doing, and how well they are implemented. Of course, they run on the client machine, so if that machine is overloaded or underpowered, applet performance won't be good. None of what you describe sounds very processing intensive, though, ... maybe the "data analysis" part, depending on what that is.


    Ping & DNS - my free Android networking tools app
    Mohamed Em
    Greenhorn

    Joined: Jul 30, 2009
    Posts: 6
    Ulf Dittmer wrote:Applets can be very fast. They can also be very slow. It depends entirely on what they are doing, and how well they are implemented. Of course, they run on the client machine, so if that machine is overload or underpowered, applet performance won't be good. None of what you describe sounds very processing intensive, though, ... maybe the "data analysis" part, depending on what that is.


    The data analysis is not made of difficult algorithm but the xml files loaded in the memory of the process are often used for the analysis.
    For example, the user want send a message to the server. he makes his message make up hundreds of field with different size. He asks then to analyze the message before send it to the distant server. For the analysis, the process will compare datas present in the user message with datas from xml files to find if the message is agree with the protocole used with the distant server. If the process find some mistakes, he could apply some actions, as disconnect from the server, display a mistake message to the user or calculated some crypted data (which shouldn't take lots of time)

    I have some difficulties to determine if this analysis required lots of data with an applet java. There is already a process in C which works and is very fast. I know that with an applet java, i will not be able to get the same result, but I wouldn't get a process very slow.
    Ulf Dittmer
    Marshal

    Joined: Mar 22, 2005
    Posts: 42641
        
      65
    That doesn't sound very processor-intensive.

    I have some difficulties to determine if this analysis required lots of data with an applet java.

    I don't understand this: In order to implement it, wouldn't you have to know exactly what data -and how much- would be involved?

    I know that with an applet java, i will not be able to get the same result

    Maybe so, but Java gets compiled to native code as well - there's no reason why it would have to be substantially slower than a comparable C algorithm. It also sounds as if there's a fair amount of network communication - for which the implementation language makes no difference in performance.
    Mohamed Em
    Greenhorn

    Joined: Jul 30, 2009
    Posts: 6
    Ulf Dittmer wrote:

    I have some difficulties to determine if this analysis required lots of data with an applet java.

    I don't understand this: In order to implement it, wouldn't you have to know exactly what data -and how much- would be involved?


    Sorry, there is a mistake, I wanted say "I have some difficulties to determine if this analysis required lots of time with an applet java.

    Thank you for your answers. I will try to develop it. I hope i will develop it enough properly to not get a process too much slow.

    See ya
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Performance of Applet?