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

[BugFix] Define CPs and nested CPs in attrs object once per class #333

Merged
merged 1 commit into from
Sep 2, 2016

Conversation

offirgolan
Copy link
Collaborator

In the current implementation, we are using defineProperty to add CPs and nested object CPs in the init method of the attrs object creation. This is extremely slow and runs on a per instance basis.

This PR removes the need for that by creating a tree of nested classes while applying the CPs on their protos. Once the attrs class is created, it instantiates those classes.

@offirgolan offirgolan changed the title Remove multiple nested defineProperty per instance of attrs object cr… Remove multiple nested defineProperty per instance of attrs object Sep 2, 2016
@offirgolan offirgolan changed the title Remove multiple nested defineProperty per instance of attrs object [BugFix] Define CPs and nested CPs in attrs object once per class Sep 2, 2016
@offirgolan offirgolan merged commit af660d6 into master Sep 2, 2016
@offirgolan offirgolan deleted the attrs-class branch September 2, 2016 05:05
offirgolan added a commit that referenced this pull request Oct 2, 2016
* master: (26 commits)
  chore(package): update ember-code-snippet to version 1.7.0 (#362)
  Replace blanket with ember-cli-code-coverage (#359)
  Remove targetObject usage in dummy app (#358)
  Made some spelling corrections in the documentation (#356)
  [BUGFIX] Add a check if ember-data exists for isDSManyArray (#354)
  chore(package): update moment to version 2.15.1 (#353)
  fix typo in collection validator (#352)
  chore(package): update ember-cli-moment-shim to version 2.1.0 (#346)
  chore(package): update moment to version 2.15.0 (#340)
  chore(package): update ember-cli-jshint to version 2.0.0 (#345)
  Released v3.0.1
  Add polyfill for `Ember.Handlebars.SafeString` (#344)
  Released v3.0.0
  [FEATURE] Add validator type to error messages (#338)
  Allow for requirejs.has to not be available (#339)
  Cleanup some attr class logic
  Released v3.0.0-beta.7
  Fix docs
  Remove examples from readme
  Remove multiple nested defineProperty per instance of attrs object creation (#333)
  ...
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.

1 participant