Skip to content

faster path filling again#316

Merged
treeform merged 4 commits intotreeform:masterfrom
guzba:master
Nov 14, 2021
Merged

faster path filling again#316
treeform merged 4 commits intotreeform:masterfrom
guzba:master

Conversation

@guzba
Copy link
Copy Markdown
Collaborator

@guzba guzba commented Nov 13, 2021

before:
svg decode ........................ 18.183 ms 18.360 ms ±0.167 x272

after:
svg decode ........................ 17.021 ms 17.161 ms ±0.111 x291

The win here is from 2 things:

  1. Computing and storing m and b for each segment and using that for each hit instead of calculating it every time
  2. Removing a float64 that snuck in through a constant (results in the file changes)

@treeform treeform merged commit cf3dd45 into treeform:master Nov 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants