[R-Forge #1705] Change CJ internally not to expand, for efficiency
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- リファクタリング
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- r
- 領域
- data, performance
調査の方向性
Start by tracing CJ(), binarysearch, and [.data.table to understand how CJ columns are currently allocated and indexed. Review the linked R-Forge discussion and use datatable-help for the under-the-hood behavior; done means establishing and implementing a viable allocation-saving design without changing normal user-visible behavior.
索引モデルが issue の本文から書いたものです。
説明
Submitted by: Matt Dowle; Assigned to: Nobody; R-Forge link
CJ() could return an irregular column length data.table (its inputs unchanged), marked somehow so that binarysearch knows to %% index through the CJ columns, rather than allocating long vectors and populating them as CJ currently does. Purely for speed, with no changes for users unless perhaps CJ() has been used outside [.data.table.
Or, more generally, data.table columns could be marked so that indexing to them knows they should be recycled, without actually allocating and recycling the columns. Discuss on datatable-help needed as under-the-hood code e.g. DT$foo[903] might not work if it was internally a short vector. In reality it's probably only useful for CJ() as regular data.table's only have recycled data perhaps to start with creating them with say an NA column but then are quickly populated. If a large table has a column with the same value (say NA or 0) for every row, perhaps the column is redundant. Can't imagine that recycling >1 items is often useful (other than in CJ()).
- 主要言語
- R
- スター
- 3.9k
- フォーク
- 1.1k
- 平均マージ
- 14時間 4分
- マージ済み PR(30日)
- 4
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Rdatatable/data.table のほかの issue
-
as.data.table() recurses without end on a survival::Surv object (or any data.frame carrying one) オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
Rdatatable/data.table#7887 ·
-
consistency tests
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Rdatatable/data.table#7853 · コメント 3 件 ·
-
internals
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
Rdatatable/data.table#6938 · コメント 1 件 ·
-
encoding fread
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
Rdatatable/data.table#5179 · コメント 8 件 ·
-
documentation programming
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Rdatatable/data.table#3199 · コメント 3 件 ·
Rdatatable/data.table の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
r-lib/pkgdepends#485 · コメント 3 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
-
beginners blocker
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
enviPathR オープンBuild Error Build OK Build Warning policies-accepted pre-review precheck-passed
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
Bioconductor/BiocContributions#207 · コメント 6 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
datacarpentry/semester-biology#1255 ·