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

feat(core): Fibers support #235

Merged
merged 20 commits into from
Apr 12, 2022
Merged

feat(core): Fibers support #235

merged 20 commits into from
Apr 12, 2022

Conversation

Guikingone
Copy link
Owner

@Guikingone Guikingone commented Apr 8, 2022

Q A
PHP version? 8.0 (but available only for 8.1)
Bundle version? 0.9.0
Symfony version? >= 5.4
New feature? yes
Bug fix? no
Discussion? # ...

@Guikingone Guikingone self-assigned this Apr 8, 2022
@Guikingone Guikingone added this to the 0.9.0 milestone Apr 8, 2022
@Guikingone Guikingone linked an issue Apr 8, 2022 that may be closed by this pull request
@Guikingone Guikingone changed the title feat(worker): FiberWorker introduced feat(core): Fibers support Apr 9, 2022
@Guikingone Guikingone added bug Something isn't working Bug fix and removed bug Something isn't working labels Apr 12, 2022
@Guikingone Guikingone merged commit de0f3b4 into main Apr 12, 2022
@Guikingone Guikingone deleted the feat/fibers branch April 12, 2022 16:37

_Introduced in `0.9`_

Since PHP `8.1`, you can use fibers to "fork" the current process and create an isolated process
Copy link

@GromNaN GromNaN Apr 18, 2022

Choose a reason for hiding this comment

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

Unfortunately, Fibers are not a new syntax to fork processes. The fibers are similar to Generators and executed in the same process.

See RFC https://wiki.php.net/rfc/fibers

Since fibers exist within a single process thread, switching between fibers is significantly more performant than switching between processes or threads.

Copy link
Owner Author

Choose a reason for hiding this comment

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

Hi @GromNaN 👋🏻

Nice catch, I opened #238 if you want to gave more informations / feedbacks on this one 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat(worker): Parallel execution
2 participants