craftleft.gif (3002 bytes)QuickTable
Home | API | Tutorial | Download | Support | Contact topblack.gif (108 bytes)


QuickTable User Cp  |  Register  |  Members  |  Search  |  Help
    |- QuickTable Discussion Forums > General QuickTable Support/Help Post New Topic   Post A Reply
closing form with many quicktables slow printer friendly version
next newest post | next oldest post
Author Messages
DaveC
Unregistered
Edit or delete this message Reply w/Quote
Posted Tuesday, August 23, 2005 @ 08:55:43  

I have a form with 7 quicktables(in different tabs) and it's noticeably slower than JTables when closing.
This form takes much longer to close than other forms in my application.
Is there any way I can improve this? There is a lot of information I need to display and
would much rather use quicktables. Also, there is no problem with only one quicktable on a form.
Admin
Board Owner

Gender: Unspecified
Location:
Registered: Jul 2003
Status: Offline
Posts: 9

Click here to see the profile for Admin Send email to Admin Send private message to Admin Find more posts by Admin Edit or delete this message Reply w/Quote
Posted Tuesday, August 23, 2005 @ 12:24:42  

when you close the form, what exactly are you doing? I assume that you are using JFrame, Are you disposing the frame when users close the frame?
DaveC
Unregistered
Edit or delete this message Reply w/Quote
Posted Tuesday, August 23, 2005 @ 13:50:05  

I am disposing of the frame.
Admin
Board Owner

Gender: Unspecified
Location:
Registered: Jul 2003
Status: Offline
Posts: 9

Click here to see the profile for Admin Send email to Admin Send private message to Admin Find more posts by Admin Edit or delete this message Reply w/Quote
Posted Wednesday, August 24, 2005 @ 08:47:43  

Could you add some timing statements and tell me which method is taking long time. For example, on close if you are just calling dispose. Just put some timing statement around it and tell me how long it takes to execute.
DaveC
Unregistered
Edit or delete this message Reply w/Quote
Posted Wednesday, August 24, 2005 @ 15:13:40  

I measured the time in milliseconds around dispose and got these results:
quicktable w/ data:
1016 miliseconds.
1094 miliseconds.
985 miliseconds.
937 miliseconds.

quicktable no data:
1000 miliseconds.
891 miliseconds.
844 miliseconds.

jtable no data:
15 miliseconds.
16 miliseconds.
32 miliseconds.

DaveC
Unregistered
Edit or delete this message Reply w/Quote
Posted Thursday, August 25, 2005 @ 08:20:26  

BTW, this is version 0.8.5-5
DaveC
Unregistered
Edit or delete this message Reply w/Quote
Posted Thursday, August 25, 2005 @ 08:23:19  

oops, that version is not right. It's version 2.0.5
DaveC
Unregistered
Edit or delete this message Reply w/Quote
Posted Thursday, August 25, 2005 @ 13:04:12  

Even with 2 tables on a form, it is slow to dispose. We are able to hide the other forms.
So, they don't have this problem. Has anyone else had this issue?
DaveC
Unregistered
Edit or delete this message Reply w/Quote
Posted Thursday, August 25, 2005 @ 14:47:13  

I tried compiling an older source and it is not slow disposing.
Another developer made some small changes to the source though.
I am trying to find out if those changes are causing this or if it was
introduced in a newer version.
Admin
Board Owner

Gender: Unspecified
Location:
Registered: Jul 2003
Status: Offline
Posts: 9

Click here to see the profile for Admin Send email to Admin Send private message to Admin Find more posts by Admin Edit or delete this message Reply w/Quote
Posted Friday, August 26, 2005 @ 05:19:25  

We had some memory issues related to dates which have been adressed in the latest version. Are you using many date columns in your quicktables?

Anyway, we will send you the latest version, please contact us at support at quicktable .org

DaveC
Unregistered
Edit or delete this message Reply w/Quote
Posted Monday, August 29, 2005 @ 08:32:12  

It seems to be a change from the march to may version. Compiling the original source from May has this problem. The other developer who is handing quicktable will be getting the latest version and I will try that.
DaveC
Unregistered
Edit or delete this message Reply w/Quote
Posted Thursday, September 1, 2005 @ 14:12:45  

The new source has the same problem. We are temporarily using March's source.
Wehave not figured out what the problem is.
DaveC
Unregistered
Edit or delete this message Reply w/Quote
Posted Tuesday, September 6, 2005 @ 14:28:46  

I believe the problem is being caused by cleanup in DBTable.
System.gc is called at each dispose through this function.
IMHO, calling the garbage collector directly usually does not help since it is called
automatically when needed. This alone speeds it up considerably.
Two other changes seem appropriate as well. Setting parentFrame = null seems
unneccessary since the object is being disposed anyway. Similarly, findFrame.removeAll() and
tempFrame.removeAll() seem unneccessary since those frames are being
disposed. These changes make disposing virtually instanteous.
Admin
Board Owner

Gender: Unspecified
Location:
Registered: Jul 2003
Status: Offline
Posts: 9

Click here to see the profile for Admin Send email to Admin Send private message to Admin Find more posts by Admin Edit or delete this message Reply w/Quote
Posted Thursday, September 8, 2005 @ 08:30:53  

Thanks for reporting the problem.

We had some memory leak issues while using quicktable with JInternalFrame. JInternalFrame doesn't release the memory after it is closed.

Some of those fixes might not be necessary, we will do some more cleanup of the code and do a release.

Admin
Board Owner

Gender: Unspecified
Location:
Registered: Jul 2003
Status: Offline
Posts: 9

Click here to see the profile for Admin Send email to Admin Send private message to Admin Find more posts by Admin Edit or delete this message Reply w/Quote
Posted Friday, September 16, 2005 @ 11:21:33  

We have a new release (2.0.6.23) where we have addressed this issue. Please try with the latest version.
Post New Topic   Post A Reply Jump to:
Contact Us | QuickTable - A Java DBGrid | Privacy Policy All times are GMT -5 Hours.
Welcome to QuickTable Forums, Guest!  
Login
Username :
Password :
In order to fully utilize the abilities of this board, you are required to register as a member. Registration is free, and allows you to do lots of things including turning on or off certain features of this board. Register now!
Powered by CuteCast v2.0 BETA 2
Copyright © 2001-2003 ArtsCore Studios