Added support for foo.some_thing === foo.someThing#1299
Added support for foo.some_thing === foo.someThing#1299hason wants to merge 4 commits intotwigphp:2.xfrom
Conversation
|
Wow! This seems like it might be great. I don't know enough of the C code to know how well this is implemented. That is part of the reason I haven't had a chance to follow up on #934 yet. Thanks for running with this! |
There was a problem hiding this comment.
wouldn't this change cause some issues with protected ? Note that I'm not sure about my comment as I'm not a C developer
|
@fabpot ping This PR does not hurt performance #934 (comment) and works with properties and arrays #934 (comment) |
composer.json
Outdated
There was a problem hiding this comment.
for the non-debug mode, what about keeping this cache on disk? Would that makes things faster? It looks like there is a lot going on in the getCacheForClass() method and I cannot believe that it does not have any impacts on real-world templates.
There was a problem hiding this comment.
Support for the cache may be added in another PR.
|
can we give this PR some life again? |
|
😞 |
|
This PR was auto-closed because I've removed the master branch and this PR was based on master. I cannot reopen it unfortunately. |
|
Changing the base branch to 2.x worked :) |
|
This one never moved forward as we did not get feedback on the C implementation. I propose to rebase it on 2.x where we don't have the C extension. |
c2a7ac3 to
d997512
Compare
|
@fabpot The C extension in 1.x is no longer used. Should I update this PR on 1.x or 2.x? |
|
@hason The C extension is gone. |
Alternative implementation of #934. Works well for methods, properties and array calls of objects with minimal performance impact. Results of twig benchmark (fabpot/twig-perf):