There are some confusions in the process of reading the source code
まだ誰も着手していません。
評価
調査の方向性
Start with fastcache.go, the Get() function around line 341, and trace genSizeBits and the bucket reset logic. Confirm the intended generation rollover behavior; done means clarifying the semantics in the issue or documenting them for readers of the source.
索引モデルが issue の本文から書いたものです。
説明
b.gen++
if b.gen&((1<<genSizeBits)-1) == 0 {
b.gen++
}
Hello the developers of fastcache. I am learning how this library running by read the source code.
And i have some confuses when reading the code of function Get() in fastcache.go, line 341.
In my opinion, the field gen in bucket means the reset rounds that the chunk had experienced.
And if gen reach the maximum 1<<genSizeBits it should be reset to 1 and not be gen++.
Is my understanding correct?
- 主要言語
- Go
- スター
- 2.4k
- フォーク
- 199
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
VictoriaMetrics/fastcache のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
VictoriaMetrics/fastcache#98 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
VictoriaMetrics/fastcache#80 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
VictoriaMetrics/fastcache#79 · コメント 1 件 · リアクション 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
VictoriaMetrics/fastcache#75 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
VictoriaMetrics/fastcache#74 ·
VictoriaMetrics/fastcache の issue をすべて見る
似ている issue
-
A failed hydrate call can be dropped when the row's wait is ready too対応中かも @turbot-agent-fleet が今日担当しました。 オープンagent:ready
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
turbot/steampipe-plugin-sdk#1018 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement needs-review
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
router-for-me/CLIProxyAPI#7976 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
uselagoon/lagoon-cli#501 · リアクション 1 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100