tree-sitter/py-tree-sitter

Release Python GIL when possible

Offen

#111 geöffnet am 23.05.2022

 (10 Kommentare) (2 Reaktionen) (0 zugewiesene Personen)C (192 Forks)github user discovery
help wanted

Repository-Metriken

Stars
 (1.490 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 4T 14h) (7 gemergte PRs in 30 T)

Beschreibung

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

Contributor Guide