-
-
Notifications
You must be signed in to change notification settings - Fork 290
fix the optimize regex and adapt the tests to actually test classAnnotat... #308
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
Conversation
|
Hello, thank you for creating this pull request. I have automatically opened an issue http://www.doctrine-project.org/jira/browse/DCOM-223 We use Jira to track the state of pull requests and the versions they got |
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.
As stated in previous discussion, we don't do this sort of "coding to make it testable" - If there's no way to verify that it's working because there's no change in behavior, then let's just harden the existing tests with more cases
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.
Fixed now
Aye but now you can't verify whether the optimization works and that's pretty bad for Drupal. Just hope it's not broken this time? |
|
@chx check it out in the environment where stuff breaks and see if the fix does it for you :-) |
|
It doesn't break because it's an optimization! It just consumes an unholy amount of memory. Some people reported 600mb on longer classes. |
|
@chx yes, I'm saying that checking it out in those environments and monitoring memory usage is the way to go to verify the patch |
|
Would you then accept a patch here which feeds a, say, 10mb string to the parser and checks |
|
@chx if we can use stuff like |
|
@chx |
|
Ah, awesome! Let's get this into to Drupal then! |
|
@guilhermeblanco can we get this merged? |
fix the optimize regex and adapt the tests to actually test classAnnotat...
|
Thank you! |
fix the optimize regex and adapt the tests to actually test classAnnotat...
There has been several problems
StaticReflectionParser::parse regexp is not inclusive enough #307