| 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!]
|
 |
 |
|
|
subject: optimize tablemodel
|
|
|