Commit 7b339b5
committed
Optimize the handling of the EOF detection in the main loop
The eof() method is a no-op when the token is not false. As the main loop
already needs to identify that case anyway, skipping the method call allows
to reduce the cost of parsing text tokens.1 parent e43f08e commit 7b339b5
1 file changed
Lines changed: 12 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| |||
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
293 | | - | |
| 293 | + | |
294 | 294 | | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
305 | 299 | | |
306 | 300 | | |
307 | 301 | | |
| |||
744 | 738 | | |
745 | 739 | | |
746 | 740 | | |
| 741 | + | |
747 | 742 | | |
748 | | - | |
| 743 | + | |
749 | 744 | | |
750 | 745 | | |
751 | 746 | | |
| |||
0 commit comments