Bug Tracker

Opened 7 years ago

Closed 6 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 Rick Waldron)

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 7 years ago by Rick Waldron

Component: unfiledmisc
Description: modified (diff)
Priority: undecidedlow

comment:2 Changed 7 years ago by Rick Waldron

Status: newopen

comment:3 Changed 6 years ago by john

Resolution: worksforme
Status: openclosed

"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.

Note: See TracTickets for help on using tickets.