Skip to content

Performance tuning #197

@obecker

Description

@obecker

The performance of the rendering process can be improved by

  • changing the TextEscaper interface method to void appendEscaped(Appendable out, String text); - thus preventing the intermediate step of creating a new String containing the escaped text
  • changing the Indenter interface method to void appendIndented(Appendable out, int level, String text); - same idea: don't create a temporary string, but write indent and text directly to out

I'm not sure if this can be realized in a backward compatible way - so probably this is something for 2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions