Opened 9 months ago
Closed 8 months ago
#60304 closed enhancement (wontfix)
Improve performance of unpack PHP function (parsing binary data)
Reported by: | dryabov | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 6.5 |
Component: | General | Keywords: | has-patch |
Focuses: | performance | Cc: |
Description
It's possible to speed up unpack performance by using offset argument instead of substr (available since PHP 7.1).
Attachments (1)
Change History (5)
#2
@
9 months ago
- Keywords has-patch added
Hi there and welcome to WordPress Trac. Thanks for submitting this ticket & corresponding PR.
Right now WordPress requires PHP 7.0 or higher, so this change is not possible at the moment.
Since you mention performance, have you done any benchmarks to see whether there is actual measurable impact? None of these look like hot code paths, so I doubt there is a substantial difference.
This ticket was mentioned in Slack in #core-performance by mukeshpanchal27. View the logs.
8 months ago
Note: See
TracTickets for help on using
tickets.
https://github.com/WordPress/WordPress/pull/687