Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2006

Tip: Looking for answers? Try searching our database.

JTable and huge dataset... best practice?

Thread view: 
Dag Sunde - 27 Jul 2006 17:01 GMT
This is just a preliminary post...

I've been called in from vacation to help out with some
performance-problems in an applet.

I just have the problem description so far, and haven't
seen the actual implementation yet. But I thought I could
ask in a generic way.

* Applet is to show a JTable with 24 rows (hours) of data.
* Columns represents (strike)-prices.
* Number of columns (headers) varies between min and max
 strike price depending on tick-size (minimum resolution).
* Cells contains volumes.

* Headers and data is read from web-server as a string:
 (r1c1;r1c2;...;r1cN|...|rNc1;rNc2;...;rNcN)
* It takes 300 mSec to read a 450Kb string in the above
 format from the web-server.
* It takes 2-300 mSec to split the string into a two-
 dimentional array of strings.

* It takes 10-15 Seconds to update the data array into
 the data-model while the JTables flashes and scrolls
 like a maniac.

Goal:
* Reduce the time taken to update or create the data-model.
* Avoid having the JTable look like an animated schess-board
 during the process.

I know it's not enough specific information here, but if
someone can give some hints and advice on how such a beast
*should* be handled, I'll really appreciate it!

TIA...

Signature

Dag.

Kai Schwebke - 27 Jul 2006 20:25 GMT
Dag Sunde schrieb:
> * It takes 10-15 Seconds to update the data array into
>   the data-model while the JTables flashes and scrolls
>   like a maniac.
>
> Goal:
> * Reduce the time taken to update or create the data-model.

sounds like every little model update is propagated to the view.
I suggest creating a new model without view from scratch and attach
this to the view as final action.

Kai


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.