[ 3 posts ]

Darshan Shah

  • Username: darshan_YUI
  • Joined: Fri Jun 22, 2012 2:19 am
  • Posts: 7
  • Location: Mumbai, Maharashtra, India
  • IRC: darshYUI
  • Offline
  • Profile

Datatable destroy problem

Post Posted: Thu Jun 28, 2012 10:01 pm
+0-
Hi Folks,

I am using YUI2 datatable.
I have developed many pages which uses YUI2 datatable extensively.
These datatables are going to have a large number of data.

I wanted to destroy the datatables when they are not in use anymore because I think these objects must be utilizing lots of memory.

I was looking for an efficient way to destroy the datatable references from browser memory.
I have not found any efficient solution for this on foums.

Is Datatable.destroy() method is sufficient to handle the destruction of whole datatable from brower ?

Satyam

YUI Contributor

  • Username: Satyam
  • Joined: Tue Dec 09, 2008 12:34 am
  • Posts: 2016
  • Location: Sitges, Spain
  • GitHub: Satyam
  • Gists: Satyam
  • IRC: DevaSatyam
  • YUI Developer
  • Offline
  • Profile

Re: Datatable destroy problem

Post Posted: Fri Jun 29, 2012 12:20 am
+0-
Yes, destroy() is the way. However, check in the bug tracker, there was a bug introduced in 2.9 which produces some memory leak. That didn't happen in 2.8. Anyway, yes, destroy is the way to do it.

Darshan Shah

  • Username: darshan_YUI
  • Joined: Fri Jun 22, 2012 2:19 am
  • Posts: 7
  • Location: Mumbai, Maharashtra, India
  • IRC: darshYUI
  • Offline
  • Profile

Re: Datatable destroy problem

Post Posted: Fri Jun 29, 2012 4:44 am
+0-
Ok..
Thanks you very much..
Could yoyu please suggest what should be the ideal place to call the destroy method ?
  [ 3 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
cron