Last modified: 2013-04-16 23:24:43 UTC
We are performing a lot of work on data-parsoid information in various DOM postprocessor passes. This currently involves a lot of repeated decoding and re-encoding of the data-parsoid attribute. Instead, we should load data-parsoid into the data.parsoid member once when starting the DOM postprocessing using loadDataAttrib (or the loadDataParsoid wrapper) in DOMUtils. the postprocessor code would then work directly on the JS data.parsoid object. This should clean up the code and improve performance. Before serializing the DOM out, the JS objects need to be serialized back to data-parsoid with DOMUtils.saveDataAttribs.
Mark Holmquist has implemented this and this has been merged. https://gerrit.wikimedia.org/r/#/c/57219/ https://gerrit.wikimedia.org/r/#/c/57648/