Page MenuHomePhabricator

Parallelize template or template parameter expansion
Closed, DeclinedPublic


To make visual editing of transclusion parameters possible, we need to improve the performance of the current implementation, as enabling parsoidConfig.addHTMLTemplateParameters currently causes complex pages to take a big time to produce.

One approach, proposed by @GWicke, is to expand templates in parallel. From a message to the parsoid email list:

  1. add an API entry point for transclusion-to-token expansion; return JSON-serialized tokens. (Eventually, once we know a transclusion is balanced, we can actually just expand to a DOM here.)
  1. experiment with calling this a) if some parameters need to be expanded to HTML, or b) if the template is in some list of expensive enough templates, or c) always.

Event Timeline

marcoil created this task.Jan 6 2015, 6:20 PM
marcoil claimed this task.
marcoil raised the priority of this task from to High.
marcoil updated the task description. (Show Details)
marcoil added a project: Parsoid.
marcoil added a subscriber: marcoil.
ssastry lowered the priority of this task from High to Medium.Feb 3 2015, 5:41 PM
ssastry set Security to None.
ssastry added a subscriber: GWicke.
marcoil removed marcoil as the assignee of this task.Jun 9 2015, 2:04 PM
ssastry moved this task from Needs Triage to Performance on the Parsoid board.Dec 18 2017, 10:11 PM
Magol added a subscriber: Magol.Dec 28 2017, 10:14 AM
ssastry closed this task as Declined.Dec 23 2019, 6:07 PM
ssastry added a subscriber: ssastry.

Parsoid/JS is not in use any more.