|
Re: Eclipse and networking stuff - poor aplication response time [message #1750588 is a reply to message #1750554] |
Fri, 23 December 2016 06:21 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
Sorry, but there's no way for anyone here to know how RDi implements its network communication. It might just be using what's in the JDK, or more likely utilities from various Apache libraries, of perhaps ECF, but even that is based on Apache libraries. But all of those are based on overall HTTP requests and it's up to the client of that framework to minimize the number of requests. Decomposing the traffic into packets is done purely at the JDK level.
In the end, the UI freezing is bad UI design, because network traffic takes arbitrarily long. Even a single HTTP request that can take more than a minute if the server is unresponsive, the timeout is long, and perhaps even several retries are involved. All such communication should be done on a background thread so it might still take a long time, but the application is not frozen. E.g., a web browser doesn't freeze on a slow page, the page just takes long to load. Applications can often improve performance by using multiple threads. Most network communication delay is in waiting to get something back, so doing 10-30 requests in parallel can often result in an application that runs 10-30 times faster. E.g., for Oomph's Eclipse Installer, we load all the update site metadata on separate threads in parallel, and while actually installer, we using 10 threads to download the artifacts (plugins and features) in parallel...
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.07626 seconds