Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

perf($compile): avoid jquery data calls when there is no data#12042

Closed
jbedard wants to merge 1 commit into
angular:masterfrom
jbedard:compile-replacewith-data
Closed

perf($compile): avoid jquery data calls when there is no data#12042
jbedard wants to merge 1 commit into
angular:masterfrom
jbedard:compile-replacewith-data

Conversation

@jbedard

@jbedard jbedard commented Jun 6, 2015

Copy link
Copy Markdown
Contributor

This avoids copying jq data for the majority of cases where there is no data. Previously when there was no data .data() was called which would create an empty data object (using defineProperties on the node which is pretty slow, just to be cleaned right after).

(this is a subset of #9365 that can be done on it's own)

@lgalfaso

lgalfaso commented Jun 8, 2015

Copy link
Copy Markdown
Contributor

landed as 9efb0d5

@lgalfaso lgalfaso closed this Jun 8, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants