Skip to content

Add a MongolParagraph.dispose() method? #37

@suragch

Description

@suragch

ui.Paragraph has a dispose() method, which TextPainter calls. Should MongolParagraph also add this? I'm not adding it yet because it would require looping through all of the _runs and disposing every Paragraph. Having these runs available potentially allows MongolParagraph to relayout itself when the height changes without having to recalculate every run. That's something that a normal Paragraph doesn't do. So it seems like a performance advantage to not dispose everything. But this is untested. Maybe disposing would be an advantage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions