How to parse/tokenize only INDENT and DEDENT tokens?
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- javascript, typescript
- 領域
- compilers, performance
調査の方向性
まず getAllTokens の実装と、dt-python-parser が使用する parser/tokenizer のエントリーポイントを読みます。5,000 行の Python ファイルのトークン化をベンチマークし、トークン型 93 および 94 として特定された INDENT と DEDENT の位置に焦点を当てます。完了の基準は、それらの位置が getAllTokens よりも大幅に短い待ち時間で返されることです。
索引モデルが issue の本文から書いたものです。
説明
Hello, I'm working on my VS Code extension, blockman, it renders blocks based on nested code blocks to make it easier to visually perceive the code.
video:
https://youtu.be/2Ajh8WQJvHs
The "dt-python-parser" package works really well, I use "getAllTokens" function to get all the tokens from python text file and then filter only type 93 (INDENT) and type 94 (DEDENT).
I need only INDENT and DEDENT locations, nothing more, but the "getAllTokens" function tokenizes everything and therefore losing much time, so if the file has more than 1000 lines, like 5000 lines or so, getAllTokens function takes many seconds to return the value, so rendering blocks take more time and waiting is not very comfortable for a user.
So, for the optimization, can I use the parser/tokenizer in such way that it would parse only INDENT/DEDENT locations and nothing more?
- 主要言語
- JavaScript
- スター
- 25
- フォーク
- 7
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
DTStack/dt-python-parser のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
DTStack/dt-python-parser#28 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
DTStack/dt-python-parser#27 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
DTStack/dt-python-parser#26 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
DTStack/dt-python-parser#24 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
DTStack/dt-python-parser#15 · コメント 3 件 ·
DTStack/dt-python-parser の issue をすべて見る
似ている issue
-
bug customer-eng Durable Agents Inngest status: needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
optimization optimization:agents-md-curator
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
githubnext/gh-aw-cao#13475 ·
-
[BUG]: "Clear All" in Settings doesn't clear the saved analysis, old data comes back after reload オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
AOSSIE-Org/OrgExplorer#253 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
oxc-project/oxc#26944 ·
-
ai-observability bug team/ai-observability
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100