Skip to content

add setallocrow#7644

Open
ben-schwen wants to merge 2 commits intomasterfrom
setallocrow
Open

add setallocrow#7644
ben-schwen wants to merge 2 commits intomasterfrom
setallocrow

Conversation

@ben-schwen
Copy link
Member

@ben-schwen ben-schwen commented Feb 19, 2026

Adds setallocrow in preparation for deleting rows by reference

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@ben-schwen ben-schwen mentioned this pull request Feb 19, 2026
5 tasks
@ben-schwen ben-schwen marked this pull request as ready for review February 19, 2026 09:10
@codecov
Copy link

codecov bot commented Feb 19, 2026

Codecov Report

❌ Patch coverage is 31.11111% with 31 lines in your changes missing coverage. Please review.
✅ Project coverage is 98.84%. Comparing base (67e7840) to head (abaa726).

Files with missing lines Patch % Lines
src/utils.c 15.62% 27 Missing ⚠️
src/wrappers.c 25.00% 3 Missing ⚠️
R/data.table.R 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7644      +/-   ##
==========================================
- Coverage   99.02%   98.84%   -0.19%     
==========================================
  Files          87       87              
  Lines       16897    16929      +32     
==========================================
+ Hits        16733    16734       +1     
- Misses        164      195      +31     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions
Copy link

  • HEAD=setallocrow slower P<0.001 for memrecycle regression fixed in #5463
    Comparison Plot

Generated via commit abaa726

Download link for the artifact containing the test results: ↓ atime-results.zip

Task Duration
R setup and installing dependencies 4 minutes and 45 seconds
Installing different package versions 10 minutes and 24 seconds
Running and plotting the test cases 3 minutes and 24 seconds

\item{n}{ The number of spare column pointer slots to ensure are available. If \code{DT} is a 1,000 column \code{data.table} with 24 spare slots remaining, \code{n=1024L} means grow the 24 spare slots to be 1024. \code{truelength(DT)} will then be 2024 in this example. }
\item{n}{ For \code{setalloccol} and \code{alloc.col}: the number of spare column pointer slots to ensure are available. If \code{DT} is a 1,000 column \code{data.table} with 24 spare slots remaining, \code{n=1024L} means grow the 24 spare slots to be 1024. \code{truelength(DT)} will then be 2024 in this example.

For \code{setallocrow}: the number of rows to over-allocate. If \code{n > 0}, allocates capacity for current rows plus \code{n} additional rows. If \code{n == 0} (default), shrinks columns to exact current size to free excess memory. }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would say n should be number of total allocated rows and not rows to allocate on top of the already allocated ones. Wdyt?

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.

2 participants

Comments