https://bugzilla.wikimedia.org/show_bug.cgi?id=52012

       Web browser: ---
            Bug ID: 52012
           Summary: Typing plain text into a large page is very slow
           Product: VisualEditor
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Data Model
          Assignee: esand...@wikimedia.org
          Reporter: tstarl...@wikimedia.org
                CC: jforres...@wikimedia.org, krinklem...@gmail.com,
                    roan.katt...@gmail.com, tpars...@wikimedia.org
    Classification: Unclassified
   Mobile Platform: ---

On [[Argentina]] on Firefox on my laptop, typing plain text takes about 380ms
per character, assuming I am interpreting the profiling correctly, meaning you
can type faster than it can update.

This is predominantly because ve.dm.Surface.prototype.change() calls
truncateUndoStack(), which unconditionally sends the "history" event despite
there normally being no changes to the redo buffer. The history event causes
ResizableNode and RelocatableNode instances to perform several jQuery.css()
calls, which apparently are very slow.

I confirmed that disabling truncateUndoStack() using the JS console causes
typing to become much faster.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to