Ticket #10698 (closed defect (bug): fixed)

Opened 2 years ago

Last modified 2 years ago

Reduce memory usage for XML-RPC requests

Reported by: josephscott Owned by: josephscott
Priority: normal Milestone: 2.9
Component: XML-RPC Version:
Severity: normal Keywords: has-patch
Cc: josephscott

Description

Demitrious Kelly did some excellent work in reducing the memory usage for processing large XML-RPC requests on WordPress.com. I'm including a patch of his work on wp-includes/class-IXR.php that does the following:

  • Pass references instead of copies of the full XML-RPC request
  • Limit the XML declaration stripping to the first 100 characters of the data
  • Parse the XML in chunks so that the whole thing doesn't get slurped into memory

Attachments

wp-includes--class-IXR.php.diff Download (2.8 KB) - added by josephscott 2 years ago.

Change History

comment:1   ryan2 years ago

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

(In [12263]) Reduce memory usage for XML-RPC requests. Props Demitrious Kelly. fixes #10698

Note: See TracTickets for help on using tickets.