Re: timelib performance fix
| From: | Ben Ramsey | Date: | Tue, 31 Aug 2021 20:58:26 +0000 |
| Subject: | Re: timelib performance fix | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-115907@lists.php.net to get a copy of this message | ||
Pierre Joye wrote on 8/31/21 01:10:
> On Mon, Aug 30, 2021 at 8:54 PM Dmitry Stogov <dmitrystogov@gmail.com> wrote:
>
>> Please, let me know you decision according
>> https://github.com/derickr/timelib/pull/99
>>
>> This workaround fix makes ~170 times improvement on "new DateTimeZone()"
>> and as result visible improvement on some real-life apps (e.g Symfony demo
>> gets ~7% according to callgrind).
>> This is a huge difference.
>>
>> The fix was proposed more than a half year ago...
>> It would be great to include it into PHP-8.1 release.
>
> Such improvements are more than welcome, especially for such obvious
> patch. One could argue that the length of the data may change in the
> future but it can be increase then, or a macro can define it easily.
>
> It is late in the run to include it, but if RMs are OK, I would be all
> for applying it. The lib is bundled and whether the external
> repository applies it should not be relevant at this point (also no
> activity in 2 years there), or?
Is it solely a bug fix and/or performance improvement?
Cheers,
Ben
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc