tree-sitter/py-tree-sitter

Release Python GIL when possible

Aberta

#111 aberto em 23 de mai. de 2022

 (10 comentários) (2 reações) (0 responsável)C (193 forks)github user discovery
help wanted

Métricas do repositório

Stars
 (1.490 estrelas)
Métricas de merge de PR
 (Mesclagem média 4d 14h) (7 fundiu PRs em 30d)

Description

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

Guia do colaborador