Comments (2)
Progress
library(microbenchmark)
microbenchmark(
r = { googlePolylines:::geometryRow.sfencoded( e, "POLYGON", multi = T) },
rcpp = { googlePolylines:::rcpp_get_geometry_types( e$geometry, "MULTIPOLYGON") },
rcpp_mult = { googlePolylines:::rcpp_get_geometry_types_multi( e$geometry, "POLYGON", "MULTIPOLYGON") }
)
# Unit: microseconds
# expr min lq mean median uq max neval
# r 482.355 493.4985 603.21041 505.5890 555.5125 2831.437 100
# rcpp 44.740 46.9655 65.92212 49.3310 57.4835 487.616 100
# rcpp_mult 46.289 48.6280 59.73938 51.6655 57.9990 304.934 100
from googlepolylines.
This branch is currently slower than the master implementation for MULTIPOLYGONs. Other geometries seem fine.
from googlepolylines.
Related Issues (20)
- error if sf is not loaded
- elevation
- sfc objects HOT 1
- encode valid range [-9999,9999]
- empty geometry causes crash HOT 1
- Handling NA input values HOT 6
- Refactor encode() Rcpp code HOT 11
- Handling NA values
- Autodetection of latitude wrong for General Transit Feeds (GTFS) HOT 1
- Decode to sf / constructing sfencoded HOT 1
- change `sfc` attribute to `sfg`
- remove Boost HOT 5
- MULTIPOINT
- remove sf from tests and suggests
- Error in rcpp_decode_polyline: basic_string
- decode always prints the input HOT 2
- Switch to C++14 under Boost 1.75.0 HOT 6
- Installation error with old g++ and CXX14 HOT 3
- Longitude off by a factor of 10? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from googlepolylines.