3 ms·
> One such performance improvement involved moving the logic to check a user’s enabled features into a background thread that refreshed on an interval rather th
by stephenr 6y ago
> One such performance improvement involved moving the logic to check a user’s enabled features into a background thread that refreshed on an interval rather than checking their enablement while the request was being processed.
This type of thing is why PHP's shared-nothing model is vastly undervalued IMO.
Does PHP have the ability to use threads if you really need it? Yes.
Are they generally a PITA to use? Yes.
Is this a problem for the vast, vast, vast majority of projects? Not in the slightest.
Having a separate invocation of the runtime for each request is a feature, not a failing.
- joshdifabio 6y agoNot for much longer! https://externals.io/message/113419#113555 https://externals.io/message/113419#113555