-
Notifications
You must be signed in to change notification settings - Fork 6
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
Conversation
Before: 1.887 seconds After: 1.517 seconds (running core.ini tests)
} | ||
} | ||
$annotations= []; | ||
unset($meta[1][$m][DETAIL_ANNOTATIONS]['generic']); |
There was a problem hiding this comment.
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.
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. |
This pull requests refactors the handcrafted class parsers and code operations into functionality in a new package,
lang.codedom
.Scope
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