Closed Bug 50553 Opened 25 years ago Closed 4 months ago

PERF: placeholder txn's keeping selection state info around for too long

Categories

(Core :: DOM: Editor, defect, P5)

defect

Tracking

()

RESOLVED INCOMPLETE
Future

People

(Reporter: mozeditor, Unassigned)

Details

(Keywords: helpwanted, perf, Whiteboard: [nsbeta3-])

Whenever you type, that transaction is merged into the previous one (if it was also typing). But the selection state info saved with each transaction is not coellesced here, resulting in a lot of tiny mallocs adding up as you type. I should touch this up so that only the "outmost" txn saves selection info, and also so that the selection state memory usage is taken from a recycleable pool.
moving to m19
Keywords: perf
Target Milestone: --- → M19
you will be mine you will be mine all mine... (coming to this bug's emotional rescue)
Status: NEW → ASSIGNED
marking future, setting to nsbeta3- per review by bijal and beppe
Keywords: helpwanted, nsbeta3
Whiteboard: [nsbeta3-]
Target Milestone: M19 → Future
QA Contact: sujay → editor
Assignee: mozeditor → nobody
Status: ASSIGNED → NEW

Bulk-downgrade of unassigned, >=5 years untouched DOM/Storage bugs' priority.

If you have reason to believe this is wrong (especially for the severity), please write a comment and ni :jstutte.

Severity: normal → S4
Priority: P3 → P5

Masayuki, does this still look relevant, or should we close this?

Flags: needinfo?(masayuki)

Although I'm not familiar with merging multiple transactions, looks like that about PlaceholderTransaction, the older one is kept and the new one is discarded after the merge. Therefore, PlaceholderTransaction::mStartSel and PlaceholderTransaction::mEndSel is stored only required ones now.

Status: NEW → RESOLVED
Closed: 4 months ago
Flags: needinfo?(masayuki)
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.