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

frankenphp-symfony: perf improvement #148

Merged
merged 3 commits into from
Oct 30, 2023

Conversation

dunglas
Copy link
Contributor

@dunglas dunglas commented Oct 28, 2023

Backport of some micro-optimizations by @francislavoie laravel/octane#764 (comment)

src/frankenphp-symfony/src/Runner.php Outdated Show resolved Hide resolved
@@ -22,22 +22,25 @@ public function __construct(private HttpKernelInterface $kernel)

public function run(): int
{
$kernel = $this->kernel;
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm, static function might not be worth it here since it has a reason to use $this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes I was hesitating but let's keep this simple indeed.

Co-authored-by: Francis Lavoie <[email protected]>
@alexander-schranz alexander-schranz merged commit 088a56f into php-runtime:main Oct 30, 2023
11 checks passed
@alexander-schranz
Copy link
Member

thx @dunglas

alexander-schranz pushed a commit that referenced this pull request Oct 30, 2023
Nyholm pushed a commit to php-runtime/frankenphp-symfony that referenced this pull request Oct 30, 2023
@dunglas dunglas deleted the frankenphp/perf branch October 30, 2023 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants