Make WordPress Core

Opened 6 weeks ago

Closed 5 weeks ago

Last modified 5 weeks ago

#60683 closed enhancement (fixed)

Optimize code to reduce unwanted memory allocation

Reported by: mujuonly's profile mujuonly Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 6.6 Priority: low
Severity: trivial Version:
Component: Administration Keywords: has-patch
Focuses: performance Cc:

Description

Optimize code to reduce unwanted memory allocation in upload.php under wp-admin

Change History (4)

This ticket was mentioned in PR #6215 on WordPress/wordpress-develop by @mujuonly.


6 weeks ago
#1

Optimize code to reduce unwanted memory allocation

Trac ticket: https://core.trac.wordpress.org/ticket/60683

#2 @swissspidy
6 weeks ago

  • Milestone changed from Awaiting Review to 6.6
  • Priority changed from normal to low
  • Severity changed from normal to trivial
  • Version trunk deleted

#3 @SergeyBiryukov
5 weeks ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 57796:

Upload: Move an assignment in wp-admin/upload.php into a conditional branch.

This is a micro-optimization to reduce unnecessary memory allocation.

Follow-up to [28682].

Props mujuonly, swissspidy, mukesh27.
Fixes #60683.

@SergeyBiryukov commented on PR #6215:


5 weeks ago
#4

Thanks for the PR! Merged in r57796.

Note: See TracTickets for help on using tickets.