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

Multicore support #355

Open
yuri-ccp opened this issue Jul 27, 2022 · 1 comment
Open

Multicore support #355

yuri-ccp opened this issue Jul 27, 2022 · 1 comment

Comments

@yuri-ccp
Copy link

New Feature request

Multicore support

Summary

Currently many PHP systems increases in size. Each day more and more modular systems are made with many different libs and files. Not only each PHP version increases the comparison range and DB size of compatinfo. Even with the phpCompatInfo using 100% o a CPU this requires a lot time to scan those complex systems. One good solution to improve the scan time is to allow the phpCompatInfo to scan different files with different CPUs at same time then sumarize all then together.

Description

I'm not an expert in PHP to correctly describe how to do this exactly but maybe can be possible to divide the file list to scan during analyzer run in different queues equals to the currently available cores of the server and then use pcntl functions to paralelize the scan making one scanner for each queue. Other option is put all files in a stack and make the master process to distribute them between a number of threads equal to number of available CPUs.

This can improve the scan time a lot specially in servers with a large number o CPUs.

@llaville
Copy link
Owner

It's a good proposal but it requires a lot of work, and I've actually few free time !
Perharps later in next months but I cannot schedule a date

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

No branches or pull requests

2 participants