Skip to content

Commit

Permalink
NEWS bullet
Browse files Browse the repository at this point in the history
  • Loading branch information
DavisVaughan committed Aug 7, 2024
1 parent 3d37b44 commit 369d5f0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# cpp11 (development version)

* Removed usage of the following non-API functions:
* `SETLENGTH()`
* `SET_TRUELENGTH()`
* `SET_GROWABLE_BIT()`

These functions were used as part of the efficient growable vectors that
cpp11 offered, i.e. what happens under the hood when you use `push_back()`.
The removal of these non-API functions means that cpp11 writable vectors that
have been pushed to with `push_back()` will likely force 1 extra allocation
when the conversion from `cpp11::writable::r_vector<T>` to `SEXP` occurs
(typically when you return a result back to R). This does not affect the
performance of `push_back()` itself, and in general these growable vectors
are still quite efficient (#362).

* Fixed a memory leak with the `cpp11::writable::r_vector` move assignment
operator (#338).

Expand Down

0 comments on commit 369d5f0

Please sign in to comment.