[wp-trac] [WordPress Trac] #60697: HTML API: Defer applying updates until necessary.

WordPress Trac noreply at wordpress.org
Tue Mar 5 23:34:45 UTC 2024


#60697: HTML API: Defer applying updates until necessary.
--------------------------+-----------------------------
 Reporter:  dmsnell       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  HTML API      |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 When making repeated updates to a document, the Tag Processor will end
 up copying the entire document once for every update. This can lead to
 catastrophic runtime behavior in the worse case.

 However, when batch-applying updates it's able to copy chunks of the
 document in one go and only end up copying the entire document once
 for the entire batch.

 Previously the Tag Processor has been eagerly applying updates, but in
 this patch it defers applying those updates as long as is possible.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60697>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list