Closed flederohr closed 1 year ago
There is now GDO/Util/Load.php which gathers performance metrics for the new Module_Hydra - A system health watcher.
Your is_file
call has very delightful performance aspects, considarably,
but in future, an OS dependant multi provider module should be used.
EDIT:
This means there will be multiple repos implementing the same path / namespace.
phpgdo-os-windows and phpgdo-os-linux will both implement \GDO\OS.
This way you have zero isWindows() branching etc., and implementing os-amiga is easy. (TODO).
A disadvantage is core stuff needing a choice for which provider to choose, but There could be autochoose multi providers ^^
Thx for the link, i learned quite essantial bits from that.
Upcoming thx commit:
Module OS postponed to later.
as
/proc/cpuinfo
only exist on a linux system but not on other Unix or MAC systems you could determine the number of cpu core withsysctl -a
in these cases.See also https://helloacm.com/how-to-get-number-of-cpu-cores-using-php-function-platform-independent/
Patch proposal: