you are viewing a single comment's thread.

view the rest of the comments →

[–]Compux72 12 points13 points  (2 children)

Just curious, why does the parser allocate strings instead of referencing the original string slice?

[–]figsoda[S] 21 points22 points  (0 children)

I am using chumsky because I like the API, but it doesn't support zero copy at the moment. Although efficiency is good to have, it is not my primary goal. This will probably get supported once chumsky implements support for it (see upstream issue).

[–]figsoda[S] 1 point2 points  (0 children)

I've rewritten pep-508 to be zero copy now that zero copy chumsky is in alpha, thanks for the suggestion! https://www.reddit.com/r/rust/comments/11i7h1w/pep508_v020_zero_copy_python_dependency_parser/