Skip to content

Bad performance of roundDecimal() in path.js #641

Closed
@Connum

Description

@Connum

This is more a note for me... roundDecimal() in path.js that I added for SVG optimization decreases the perfocmance drastically (see #588). It was however the only calculation method I found so far that handles rounding with decimal places reliably and precise enough to pass the tests in the unicode test suite. We'll need to find a remedy for this before releasing 2.0.0. I'm thinking of a cache for the rounding of the decimal places (that should be quite repetitive among the glyph paths).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions