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

Refactor: Class parser #59

Closed
wants to merge 23 commits into from

Conversation

thekid
Copy link
Member

@thekid thekid commented Feb 22, 2015

This pull requests refactors the handcrafted class parsers and code operations into functionality in a new package, lang.codedom.

Scope

  • The parsers for class, field and method details and annotations
  • The generic type creator

Performance

Before:

$ unittest src/test/config/unittest/core.ini
# ...
OK: 1951/1976 run (25 skipped), 1951 succeeded, 0 failed
Memory used: 11187.97 kB (12127.07 kB peak)
Time taken: 1.466 seconds

After:

$ unittest src/test/config/unittest/core.ini
# ...
OK: 2044/2069 run (25 skipped), 2044 succeeded, 0 failed
Memory used: 11600.63 kB (12574.12 kB peak)
Time taken: 1.564 seconds

~same

}
}
$annotations= [];
unset($meta[1][$m][DETAIL_ANNOTATIONS]['generic']);
Copy link
Member Author

Choose a reason for hiding this comment

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

This line with unset(...) was not ported, but does not fail any test so far.

@thekid
Copy link
Member Author

thekid commented Apr 1, 2015

Delaying this, the code currently works fine (albeit being hard to read) and I really don't want to bundle the entire xp-forge/parse library with XP core, especially not with xp-framework/rfc#296 coming up.

@thekid thekid closed this Apr 1, 2015
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.

1 participant