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

Add Geometry & GeometryCollection support to @turf/truncate #676 #677

Merged
merged 3 commits into from
Apr 18, 2017

Conversation

DenisCarriere
Copy link
Member

@DenisCarriere DenisCarriere commented Apr 18, 2017

Reference issue #676.

New changes

  • GeometryObject support
  • GeometryCollection support
  • Does not mutate input
  • Performance increase by 3x

Benchmark Results

geometry-collection x 738,378 ops/sec ±1.53% (89 runs sampled)
linestring-geometry x 427,791 ops/sec ±1.33% (88 runs sampled)
point-elevation x 1,542,262 ops/sec ±1.40% (84 runs sampled)
point-geometry x 2,060,711 ops/sec ±1.24% (86 runs sampled)
point x 2,009,496 ops/sec ±1.14% (86 runs sampled)
points x 704,826 ops/sec ±1.32% (81 runs sampled)
polygon x 240,593 ops/sec ±1.86% (90 runs sampled)
polygons x 117,259 ops/sec ±1.47% (91 runs sampled)

@DenisCarriere DenisCarriere added this to the 4.2.0 milestone Apr 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant