Live data from Hacker News

JQuery 1.4.2 Released

blog.jquery.com

1–10 of 29 posts

Re: JQuery 1.4.2 Released

#5
I've been using Prototype for, oh, maybe 4 years now. I really like it. However, the rift between it and jQuery is becoming large enough that my company is considering re-factoring our existing code to use jQuery instead. It seems to have Prototype beat on speed, size, community, modularity and compatibility. Any advice floating around out there? Are there any reasons to stick with Prototype?

Re: JQuery 1.4.2 Released

#6

wow they say double speed improvement since 1.4.1

I don't think this translates to the real world- one of the main things they did for that benchmark is add a special case for $('body') which will probably slow down (not noticeably though) most people's code.

Re: JQuery 1.4.2 Released

#7
post #5

I've been using Prototype for, oh, maybe 4 years now. I really like it. However, the rift between it and jQuery is becoming large enough that my company is considering re-factoring our existing code to use jQuery instead. It seems to have Prototype beat on speed, size, community, modularity and compatibility. Any advice floating around out there? Are there any reasons to stick with Prototype?

the easy argument would be learning curve. you'll have to relearn doing things with jquery that you're used to doing with prototype. not that it is a huge curve, but it is something that will cause a downturn in productivity in the short term, at least.

Re: JQuery 1.4.2 Released

#8
post #6

wow they say double speed improvement since 1.4.1

I don't think this translates to the real world- one of the main things they did for that benchmark is add a special case for $('body') which will probably slow down (not noticeably though) most people's code.

Erm - how would it slow down people's code? We're already doing a check to see if a tag name is being used and optimize based upon that, we just added one additional check to optimize for body.

There is absolutely no way in which the check:

    if ( selector === "body" && !context ) ...
Will have performance implications in your application.

Re: JQuery 1.4.2 Released

#9

wow they say double speed improvement since 1.4.1

That is pretty impressive. Also interesting that FF 3.5 seems to perform better than FF 3.6 according to those charts. Edit: Ah, nevermind, my mistake.

Other way around - be sure to double-check the raw data at the bottom (3.6 is considerably faster than 3.5).

Re: JQuery 1.4.2 Released

#10

wow they say double speed improvement since 1.4.1

That is pretty impressive. Also interesting that FF 3.5 seems to perform better than FF 3.6 according to those charts. Edit: Ah, nevermind, my mistake.

You're looking at the IE 6 slice, not the FF 3.6 slice.
Post reply on HN