Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
jQuery slowdowns on consecutive calls
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
offwhite  
View profile  
 More options Aug 3 2007, 12:26 am
From: offwhite <offwh...@gmail.com>
Date: Fri, 03 Aug 2007 04:26:00 -0000
Subject: jQuery slowdowns on consecutive calls
http://brennan.offwhite.net/fasterjquery/

I put together a test to see how well jQuery would perform if I
carefully chained multiple functions together or use the "each"
function or completely break them up into separate calls. I was able
to show the chaining is the fastest while the each function still
performed alright.

What I discovered was that when the functions are run again they take
longer. And it adds up each time. I would like to know if there is
something I should do or if there is something in jQuery that is
causing this behavior.

You can see the sample here...

http://brennan.offwhite.net/fasterjquery/


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ganeshji Marwaha  
View profile  
 More options Aug 3 2007, 6:40 pm
From: "Ganeshji Marwaha" <ganeshr...@gmail.com>
Date: Fri, 3 Aug 2007 15:40:03 -0700
Local: Fri, Aug 3 2007 6:40 pm
Subject: Re: [jQuery] jQuery slowdowns on consecutive calls

In your attachBehavior method, u r attaching the click event every time.
This means that during each run, the same handler is run multiple times.
That is what is causing ur problem. Attach the click() event only once, and
u should see consistent results.

-GTG

On 8/2/07, offwhite <offwh...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
offwhite  
View profile  
 More options Aug 4 2007, 9:22 am
From: offwhite <offwh...@gmail.com>
Date: Sat, 04 Aug 2007 06:22:22 -0700
Local: Sat, Aug 4 2007 9:22 am
Subject: Re: jQuery slowdowns on consecutive calls
Thanks for the answer. I am binding the elements each time because I
am also recreating the table. It is meant to simulate what happens
when a block of markup is replaced with an AJAX call and the jQuery
functions then attach these events. The markup for the table is
removed and then recreated before the function to attach the behavior
is run.

What I have determined is that the bind function takes longer each
time.

I have created a ticket on this issue. I am trying to determine what I
can do to fix it but I could use some help.

http://dev.jquery.com/ticket/1463

On Aug 3, 5:40 pm, "Ganeshji Marwaha" <ganeshr...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
offwhite  
View profile  
 More options Aug 4 2007, 2:05 pm
From: offwhite <offwh...@gmail.com>
Date: Sat, 04 Aug 2007 18:05:33 -0000
Local: Sat, Aug 4 2007 2:05 pm
Subject: Re: jQuery slowdowns on consecutive calls
I have posted a solution to the ticket.

http://dev.jquery.com/ticket/1463

Brennan

On Aug 4, 8:22 am, offwhite <offwh...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ganeshji Marwaha  
View profile  
 More options Aug 6 2007, 2:56 pm
From: "Ganeshji Marwaha" <ganeshr...@gmail.com>
Date: Mon, 6 Aug 2007 11:56:39 -0700
Local: Mon, Aug 6 2007 2:56 pm
Subject: Re: [jQuery] Re: jQuery slowdowns on consecutive calls

did u get any response to the ticket. it sounds like a serious problem to
me...

i saw ur solution and was wondering if as a user, i should call unbind for
all those elements that get removed. that should solve the problem somewhat?
but then it becomes hard to remember it everytime like in those c++ days.

-GTG

On 8/4/07, offwhite <offwh...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google