Skip to content

New C callables to support tibble #1679

@krlmlr

Description

@krlmlr

Subsetting and subassignment is up to 5x slower than the corresponding data frame operations. I don't see potential to optimize at the R level without compromising readability. To implement efficiently in C, we'd need the following C callables:

  • vec_slice
  • vec_as_names
  • vec_set_names
  • vec_as_location
  • vec_as_location2
  • vec_as_subscript2
  • vec_is (*)
  • vec_recycle (*)
  • num_as_location (*)
  • vec_as_location2 (*)

Ideally, these C callables would return an error object instead of throwing an error. Do we have a good pattern for this?

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