Commit 7111256
Fix Bot
Avoid eager file read in State.parse_file() when using native parser
When there was only one file in a parse batch, State.parse_file() was
called directly and invoked get_source() unconditionally, reading the
file eagerly in Python. This is unnecessary for on-disk files with the
native parser, which reads files itself in Rust. The fix skips
get_source() in that case, matching the behavior of the parallel path.
Fixes #215141 parent b44b2ca commit 7111256
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3211 | 3211 | | |
3212 | 3212 | | |
3213 | 3213 | | |
3214 | | - | |
| 3214 | + | |
| 3215 | + | |
| 3216 | + | |
| 3217 | + | |
| 3218 | + | |
3215 | 3219 | | |
3216 | 3220 | | |
3217 | 3221 | | |
| |||
0 commit comments