GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Speed improvements · Issue #28 · Rcpp11/attributes

Speed improvements #28

New issue
Copy link
New issue
Copy link
Open
Open
Speed improvements#28
Copy link

Description

@kevinushey
kevinushey
opened on Jun 22, 2014
Issue body actions

Although the current implementation of attributes::compileAttributes() is certainly 'fast enough', we're still about half the speed of Rcpp::compileAttributes(). There are surely some low hanging fruit; e.g. using timeit to profile:

plot(timeit(attributes::compileAttributes()))

gives the plot

screen shot 2014-06-22 at 11 23 03 am

I can only imagine some of this slowness is related to e.g. unnecessary repeated reading of files, or lack of vectorization.

Activity

  1. romainfrancois commented on Jun 22, 2014

    @romainfrancois
    romainfrancois
    on Jun 22, 2014
    Contributor
    More actions

    Thanks for looking into this.

  2. romainfrancois commented on Jun 22, 2014

    @romainfrancois
    romainfrancois
    on Jun 22, 2014
    Contributor
    More actions

    Which codebase to you use for the benchmarks ?

  3. kevinushey commented on Jun 22, 2014

    @kevinushey
    kevinushey
    on Jun 22, 2014
    ContributorAuthor
    More actions

    I've been using my own package Kmisc which has a mess of C++ files: https://github.com/kevinushey/Kmisc

    I'm not sure how good a job timeit is doing here though -- after removing file existence checks, the rest of the time is actually in .Calls so my (overly conservative, probably slow) C/C++ code is probably the culprit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.