Commit 4efcd35
Pico-optimize
The `SkipWhitespace` predicate in `absl::StrSplit` now uses `absl::StripLeadingAsciiWhitespace` instead of `absl::StripAsciiWhitespace`.
Since the predicate only checks if the string is empty after stripping, and both functions reduce strings consisting only of whitespace to empty, this change does not alter the filtering behavior of `SkipWhitespace`, but spares one redundant call to `absl::StripTrailingAsciiWhitespace`.
PiperOrigin-RevId: 832467122
Change-Id: I5bf1ed99ded039d7070111d2f0cb50bc8b3d701aSkipWhitespace to use StripLeadingAsciiWhitespace.1 parent f751e61 commit 4efcd35
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
385 | | - | |
| 385 | + | |
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
| |||
0 commit comments