tree-sitter/py-tree-sitter

Release Python GIL when possible

開放

#111 建立於 2022年5月23日

 (10 則留言) (2 個反應) (0 位負責人)C (192 個分叉)github user discovery
help wanted

倉庫指標

星標
 (1,490 顆星)
PR 合併指標
 (平均合併 4天 14小時) (30 天內合併 7 個 PR)

描述

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).

貢獻者指南