Consider using mimalloc as the memory allocator for tree-sitter
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 62/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- rust
- 領域
- performance, tooling
調査の方向性
ペイロードにはファイル名が含まれていないため、クレートの Cargo.toml とバイナリのエントリポイントから始めてください。変更内容は、mimalloc を依存関係として追加し、グローバルアロケータとして登録することです。その後、同じ入力を使ってフォーマッタのベンチマークを変更前と変更後に実行してください。変更前後の計測時間を Issue に投稿し、その差が測定可能かどうかを結果に示せば完了です。
索引モデルが issue の本文から書いたものです。
説明
I did some profiling on the parser and noticed that about 80-90% of the execution time is parsing with tree sitter. A big chunk of the parsing time is memory allocations. I looked a bit into it and it doesn't seem like this is something you can avoid in the parser itself: AST nodes get allocated dynamically.
There's this alternate memory allocator that's supposed to be faster for small dynamic memory allocations, mimalloc. This task is about giving it a try, benchmarking before and after and seeing if it makes a measurable difference.
- 主要言語
- Rust
- スター
- 468
- フォーク
- 39
- 平均マージ
- 6時間 24分
- マージ済み PR(30日)
- 3
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
GDQuest/GDScript-formatter のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 58/100
GDQuest/GDScript-formatter#360 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
GDQuest/GDScript-formatter#354 · コメント 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
GDQuest/GDScript-formatter#353 · コメント 3 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 63/100
GDQuest/GDScript-formatter#348 · コメント 3 件 · リアクション 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
GDQuest/GDScript-formatter#341 ·
GDQuest/GDScript-formatter の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
chroma-core/chroma#7879 ·
メンテナーはふだん 1 日以内に返信
-
priority middle
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
KATO-Hiro/AtCoderClans#12838 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信