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

[ASTextNode2] Simplify allocWithZone: + initialize implementation #trivial #1059

Merged
merged 2 commits into from
Aug 2, 2018

Conversation

Adlai-Holler
Copy link
Member

Motivation

Some code paths in our app use class_createInstance directly on subclasses of ASTextNode and so bypass allocWithZone:. In order to get the correct class hierarchy, the change must be made somewhere else.

Changes

  • Move the class change for subclasses from allocWithZone: to initialize.

We get the added benefit of improving performance.

@CLAassistant
Copy link

CLAassistant commented Aug 1, 2018

CLA assistant check
All committers have signed the CLA.

@Adlai-Holler Adlai-Holler changed the title [ASTextNode2] Simplify allocWithZone: + initialize implementation [ASTextNode2] Simplify allocWithZone: + initialize implementation #trivial Aug 1, 2018
Copy link
Contributor

@maicki maicki left a comment

Choose a reason for hiding this comment

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

LGTM!

@Adlai-Holler Adlai-Holler merged commit 78be342 into master Aug 2, 2018
@Adlai-Holler Adlai-Holler deleted the AHTextNode2Initialize branch August 2, 2018 14:36
mikezucc pushed a commit to mikezucc/Texture that referenced this pull request Oct 2, 2018
…ivial (TextureGroup#1059)

* Simplify ASTextNode2 alloc + initialize implementation

* Kick the CI by marking two methods as NO_ESCAPE for Xcode 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants