undom icon indicating copy to clipboard operation
undom copied to clipboard

Further improve performance of Document creation.

Open bmeurer opened this issue 6 years ago • 0 comments

This speeds up the create test by about 25-30% by avoiding the call to util.assign() in the createDocument() function. Instead of that Document#document is now an accessor on the prototype, defaultView is an instance of a new DefaultView class, whose instances have links to the document, and finally the interesting constructors that are exposed via Document instances are all installed on the Document and DefaultView prototypes instead of the instances.

bmeurer avatar Feb 03 '19 20:02 bmeurer