-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Cache] make PhpMarshaller handle hard references #28188
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
ed9fada
to
8f8b6b9
Compare
PR is green and ready. |
* | ||
* @internal | ||
*/ | ||
public static function marshall($values, $objectsPool, &$refsPool, &$objectsCount, &$valuesAreStatic) |
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.
should we have typehints here ?
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.
See above:
For performance this method is public and has no type-hints.
Since this method (and class) is internal, we can do it.
What is the goal of extracting the Marshaller class out of PhpMarshaller ? This makes review harder (as it is much harder to see which code was changed when moving it) and I don't see any usage out of PhpMarshaller |
The goal is allowing extra performance by making the old "doMarshall" method public and type-hint-less (see my reply to your previous comment.) |
c91729f
to
69c5e8e
Compare
69c5e8e
to
bc5d208
Compare
…-grekas) This PR was merged into the 4.2-dev branch. Discussion ---------- [Cache] make PhpMarshaller handle hard references | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - This PR makes the interface and behavior of `PhpMarshaller` cleaner and bullet-proof. While a bug fix at this stage, I'd like to propose splitting it to a new `VarExporter` component all goes well. Commits ------- bc5d208 [Cache] make PhpMarshaller handle hard references
This PR makes the interface and behavior of
PhpMarshaller
cleaner and bullet-proof.While a bug fix at this stage, I'd like to propose splitting it to a new
VarExporter
component all goes well.