Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Consider using mimalloc as the memory allocator for tree-sitter

オープン 初心者向け
#365 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
62/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
rust

調査の方向性

ペイロードにはファイル名が含まれていないため、クレートの 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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

GDQuest/GDScript-formatter のほかの issue

GDQuest/GDScript-formatter の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。