Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

topojson.{feature,mesh} without copying points. #6

Open
mbostock opened this issue Oct 31, 2016 · 0 comments
Open

topojson.{feature,mesh} without copying points. #6

mbostock opened this issue Oct 31, 2016 · 0 comments

Comments

@mbostock
Copy link
Member

One of the biggest performance costs in topojson.feature (and topojson.mesh) is calling array.slice on every point. There are times when this is needed, but in many cases it would be perfectly reasonable to modify the coordinates in-place when applying the transform, and to avoid the copy when creating a feature or mesh. We should design an appropriate API to enable this faster path.

Moved from topojson/topojson#215.

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

No branches or pull requests

1 participant