Thanks Jorn and sorry by delay in response.

Yes, using excellent Firebug Profiler give me several and interesting data
to look for:

(no name)8789(calls)35%(Percent)218.75ms218.75ms0.025ms0ms15.625msjquery.js
(line 1006)merge6727.5%171.875ms203.125ms3.032ms0ms46.875msjquery.js (line
596)grep4410%62.5ms1421.875ms32.315ms0ms468.75msjquery.js (line 609)add4235%
31.25ms31.25ms0.074ms0ms15.625msjquery.js (line 1169)inArray110325%31.25ms
31.25ms0.003ms0ms15.625msjquery.js (line 590)pushStack465%31.25ms31.25ms
0.679ms0ms15.625msjquery.js (line 78)css762.5%15.625ms15.625ms0.206ms0ms
15.625msjquery.js (line
365)each342.5%15.625ms156.25ms4.596ms0ms46.875msjquery.js
(line 88)sibling12.5%15.625ms15.625ms15.625ms15.625ms15.625msjquery.js (line
1149)(no name)222.5%15.625ms15.625ms0.71ms0ms15.625msjquery.js (line 1952)
add
In resume: more than 95% of time is only jQuery routine. Could be very
difficult to use any tuning right?

Line 1006 in jquery.js(first occurence) looks like this:

// It's faster to filter by class and be done with it1005 if ( m[1] == "."
&& ret.length == 1 )
1006 r = jQuery.grep( r, function(e) {
1007 return rec.test(e.className);
1008 });

How can I change this to my code runs faster?

Cheers


2007/4/15, Jörn Zaefferer <[EMAIL PROTECTED]>:


Web Specialist schrieb:
> Hi all.
>
> I have a form with more than 50 fields using tabs, form validate and
> highlight plugins with dependent fields inside. After click in Save
> button, all validation routine occurs after 10 seconds. For me this is
> very slow. What do you think about? It's possible to do a fine tuning
> in that code?
Firebug has an excellent profiler. Go to the console tab, click on
profile, execute some code eg. click on submit, then click on profile
again and watch the results. You should use only uncompressed version of
jQuery and plugins for a useful result.

--
Jörn Zaefferer

http://bassistance.de


Reply via email to