mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-01 14:34:42 +01:00
Second port review round (outside voice): the matcher counted UTF-16 units, so 'crates/?' missed a crate directory named with a supplementary character and dropped its inherited dependencies (a false green); and each unmatched '[' rescanned the rest of the glob (5 s for one crate with a million of them). Tokenize by code point with a precomputed next-']' table, and past 4096 characters of members globs admit every crate under the workspace: a wrong member fails loudly in cargo, a dropped one is silent. The new supervised probe kills a super-linear matcher at 30 s instead of hanging the file. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>