Rewriting jQuery to plain old javascript - are the performance gains worth it?
Posted
by
Swader
on Stack Overflow
See other posts from Stack Overflow
or by Swader
Published on 2011-03-15T07:47:02Z
Indexed on
2011/03/15
8:10 UTC
Read the original article
Hit count: 228
Since jQuery is an incredibly easy and banal library, I've developed a rather complex project fairly quickly with it. The entire interface is jQuery based, and memory is cleaned regularly to maintain optimum performance. Everything works very well in Firefox, and exceptionally so in Chrome (other browsers are of no concern for me as this is not a commercial or publicly available product).
What I'm wondering now is - since pure plain old javascript is really not a complicated language to master, would it be performance enhancing to rewrite the whole thing in plain old JS, and if so, how much of a boost would you expect to get from it?
If the answers prove positive enough, I'll go ahead and do it, run a benchmark and report back with the precise findings.
Cheers
Edit: Thanks guys, valuable insight. The purpose was not to "re-invent the wheel" - it was just for experience and personal improvement. Just because something exists, doesn't mean you shouldn't explore it into greater detail, know how it works or try to recreate it. This is the same reason I seldom use frameworks, I would much rather use my own code and iron it out and gain massive experience doing it, than start off by using someone else's code, regardless of how ironed out it is. Anyway, won't be doing it, thanks for saving me the effort :)
© Stack Overflow or respective owner