Opened 12 years ago
Closed 12 years ago
#7629 closed enhancement (worksforme)
Extend coverage of stored references to core methods metaticket
Reported by: | Rick Waldron | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | misc | Version: | 1.4.4 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description (last modified by )
A comment on #6809 pointed to a patch that does some optimizations by extended the idea already in practice of storing references to core methods, strings and other "constant" type information that is frequently reused.
A VERY good resource for this practice was published by the winner of the JS1k contest, here:
http://marijnhaverbeke.nl/js1k/
Additionally, this a link to the patch:
https://github.com/monsterzz/jquery/commit/7ab7f285127fe29107a47fe486e3ea40ff51aec9
Change History (3)
comment:1 Changed 12 years ago by
Component: | unfiled → misc |
---|---|
Description: | modified (diff) |
Priority: | undecided → low |
comment:2 Changed 12 years ago by
Status: | new → open |
---|
comment:3 Changed 12 years ago by
Resolution: | → worksforme |
---|---|
Status: | open → closed |
Note: See
TracTickets for help on using
tickets.
"storing references to core methods, strings and other "constant" type information that is frequently reused."
Don't we do this already? We store reference to many DOM methods, we cache all RegExp and functions at the top of our code. I think we're already OK here.
I've moved the commit above into #6809.