Code Monkey home page Code Monkey logo

Comments (2)

 avatar commented on June 23, 2024

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.

dcooley avatar dcooley commented on June 23, 2024

This branch is currently slower than the master implementation for MULTIPOLYGONs. Other geometries seem fine.

from googlepolylines.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.