Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance improvements for method calls #438

Merged
merged 2 commits into from
Dec 11, 2015

Conversation

fealebenpae
Copy link
Contributor

This yields a ~100% performance improvement in synthetic benchmarks.

class_conformsToProtocol is too heavy to invoke on every method call so replace it with something lighter.
Get rid of WTF::ThreadSpecific
@fealebenpae fealebenpae self-assigned this Dec 10, 2015
@fealebenpae fealebenpae added this to the 1.6.0 (Under review) milestone Dec 10, 2015
@ns-bot
Copy link

ns-bot commented Dec 10, 2015

Test PASSed.

@@ -21,6 +21,10 @@
#include "Interop.h"
#include "TNSFastEnumerationAdapter.h"

@protocol TNSDerivedClass
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible to completely remove this protocol now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's still used within the class builder and I can't figure out a substitution. It's not on a hot path there so I guess it's fine.

ivanbuhov added a commit that referenced this pull request Dec 11, 2015
…formance-performance

Performance improvements for method calls
@ivanbuhov ivanbuhov merged commit 8119895 into master Dec 11, 2015
@ivanbuhov ivanbuhov deleted the fealebenpae/performance-performance-performance branch December 11, 2015 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants