Skip to content

Switch from Rcpp to cpp11#73

Merged
wch merged 7 commits intomasterfrom
cpp11
Mar 24, 2021
Merged

Switch from Rcpp to cpp11#73
wch merged 7 commits intomasterfrom
cpp11

Conversation

@wch
Copy link
Contributor

@wch wch commented Jan 4, 2021

This PR switches from Rcpp to cpp11. It might make it possible to build the package on memory-limited systems such as rstudio.cloud.

There's still one issue: the GC tests aren't passing. I tested a bit, and found that if the test block is run again, the objects from the previous run would get GC'd, but I haven't yet figured out why that is.

@wch
Copy link
Contributor Author

wch commented Mar 24, 2021

I have code to help track down the memory leak using memtools, but for some reason, inspecting some of the objects results in a segfault.

https://gist.github.com/wch/5677c6d967398aac081e3c6331e0b62e

@wch
Copy link
Contributor Author

wch commented Mar 24, 2021

After poking at this some more, I believe that the cause of the memory leak is a bug in cpp11: r-lib/cpp11#154

@wch wch merged commit 0b0cb8b into master Mar 24, 2021
@wch wch deleted the cpp11 branch March 24, 2021 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant