Use ALTREP safe operations
还没有人认领这个 Issue。
评估
调研方向
首先运行 issue 中可复现的 R 示例,并检查 vecvec 使用的 ALTREP 相关向量操作。确定在查看 tibble 时哪个操作会将 x 实体化,然后验证查看 tibble 后该序列仍保持紧凑。
由索引模型根据 Issue 内容生成。
描述
For instance, viewing a tibble unnecessarily evaluates the sequences:
library(vecvec)
x <- tibble::tibble(x = vecvec(seq_len(1e6)), y = seq_len(1e6))
pryr::object_size(x$x)
#> 32.90 kB
pryr::object_size(x$y)
#> 680 B
x
#> # A tibble: 1,000,000 × 2
#> x y
#> <int*> <int>
#> 1 1 1
#> 2 2 2
#> 3 3 3
#> 4 4 4
#> 5 5 5
#> 6 6 6
#> 7 7 7
#> 8 8 8
#> 9 9 9
#> 10 10 10
#> # ℹ 999,990 more rows
pryr::object_size(x$x)
#> 4.03 MB
pryr::object_size(x$y)
#> 680 B
Created on 2026-04-10 with reprex v2.1.1
- 主要语言
- R
- 星标
- 4
- 派生
- 1
- 平均合并
- 19 小时 32 分钟
- 30 天内合并 PR
- 1
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
mitchelloharawild/vecvec 的其他 Issue
-
难度 5/5 一周以上 新手友好度 42/100
mitchelloharawild/vecvec#25 · 4 条评论 ·
-
难度 5/5 一周以上 新手友好度 25/100
mitchelloharawild/vecvec#24 ·
-
难度 3/5 1-2 天 新手友好度 45/100
mitchelloharawild/vecvec#18 ·
-
难度 4/5 3-5 天 新手友好度 45/100
mitchelloharawild/vecvec#17 ·
查看 mitchelloharawild/vecvec 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 72/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 85/100
-
make sure .Random.seed exists可能已有人在做 @topepo 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 66/100
tidymodels/tune#1211 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
PecanProject/pecan#4183 · 1 条评论 ·
维护者通常 3 天内回复
-
Rate metrics miscompute list and tuple labels可能已有人在做 @AryanRG 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
Trusted-AI/AIF360#582 ·