Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > JTable and huge dataset... best practice?

Reply
Thread Tools

JTable and huge dataset... best practice?

 
 
Dag Sunde
Guest
Posts: n/a
 
      07-27-2006
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...

--
Dag.



 
Reply With Quote
 
 
 
 
Kai Schwebke
Guest
Posts: n/a
 
      07-27-2006
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Memory error due to the huge/huge input file size tejsupra@gmail.com Python 3 11-20-2008 07:21 PM
Putting a JTable inside a JTable cell? Tivo Escobar Java 1 04-12-2007 11:09 AM
How to move data from a CSV file to a JTable, and from a JTable to a CSV file ? Tintin92 Java 1 02-14-2007 06:51 PM
How to set and highlight text in JTable cell on selection and/or invoke cell editor directly. news.rcn.com Java 1 07-12-2004 10:22 PM
Best Buy had a HUGE sale today! Sseaott Digital Photography 4 05-12-2004 02:24 PM



Advertisments