File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes optimize tablemodel Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "optimize tablemodel" Watch "optimize tablemodel" New topic
Author

optimize tablemodel

nomeaning
Greenhorn

Joined: Sep 16, 2005
Posts: 21
hi all, after some changes in my implementation, my code has been now horrible.... i would like to optimize it. could you give me some ideas? Since i know i am using some elements of the view inside this model, i need to separate, thanks



Ted Smyth
Ranch Hand

Joined: May 28, 2008
Posts: 73
How large a data set are you using?


Edward Smith
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19216

What does object1.getDimension() do? You're potentially calling this method 5 times. If that method performs lengthy executions or creates several objects each time, you might want to cache the results at the start and use that cached value.


SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 8436

Hello "nomeaning".
Do take out time to read the naming policy.
You can change your display name here


[Donate a pint, save a life!] [How to ask questions] [Onff-turn it on!]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: optimize tablemodel
 
Similar Threads
JMX Example (Need to improve my application)
How do I get selected rows that have a check against them using check boxes in a table
JTable shows previous data
JTable and its size
Display a list in a JTable