Skip to content

Conversation

@mmun
Copy link
Member

@mmun mmun commented Feb 8, 2018

Continuing our effort to make meta smaller...

FYI, the cacheFor.{get,set,remove} have never been used in a public add-on so I'm remove them. We weren't even using them internally :)

@mmun mmun requested a review from rwjblue February 8, 2018 01:20
Copy link
Member

@rwjblue rwjblue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great to me! We should do a macro benchmark to sanity check things here...

@rwjblue
Copy link
Member

rwjblue commented Feb 8, 2018

For those following along, we are trying to remove usage of _getOrCreateOwnMap in Meta, and focus the meta class on only things that are inherited...

@mmun mmun force-pushed the move-cp-cache-to-weakmap branch from 4dad3c4 to 7f3f387 Compare February 8, 2018 02:21
@mmun
Copy link
Member Author

mmun commented Feb 8, 2018

Here are the results I got from benchmarking https://emberobserver.com/categories/components:

results.pdf

Here are meta counters for loading the index page:

master experiment
peekCalls 70096 62853
peekParentCalls 0 0
peekPrototypeWalks 2347 2352
setCalls 1072 1071
deleteCalls 1 1
metaCalls 22574 15353
metaInstantiated 1072 1071

@rwjblue rwjblue merged commit 74b9c49 into master Feb 8, 2018
@rwjblue rwjblue deleted the move-cp-cache-to-weakmap branch February 8, 2018 11:51
@rwjblue
Copy link
Member

rwjblue commented Feb 8, 2018

Awesome, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants