tree-sitter/py-tree-sitter

Release Python GIL when possible

オープン

#111 opened on 2022/05/23

 (10 件のコメント) (2 件のリアクション) (0 人の担当者)C (192 件のフォーク)github user discovery
help wanted

Repository metrics

Stars
 (1,488 個のスター)
PR merge metrics
 (平均マージ 4d 14h) (30d で 7 merged PRs)

説明

I'm looking to search several million source files using the tree-sitter query interface. I'd love to use a thread pool in Python for this. Would it be possible to make a thread-safe Query.captures method that released the GIL?

I tried doing it in https://github.com/grantjenks/py-tree-sitter-languages but couldn't figure it out this evening (not sure it's possible with the current interface).

コントリビューターガイド