Skip to content

Commit da9de5a

Browse files
osa1Commit Queue
authored andcommitted
[dart2wasm] More dart:convert micro optimizations
This does some micro-optimizations in UTF-8 decoder that wasm-opt doesn't do for us. - Inline some small and/or single-use functions. - Instead of passing `U8List` to parser functions, pass the `array i8` of the `U8List`. This eliminates a layer of indirection when accessing the array in loops. - Copy `_Utf8Decoder.transitionTable` and `_Utf8Decoder.typeTable`, which are `String`s, as `array i8`s. This also eliminates a layer of indirection when accessing the tables. CoreLibraryReviewExempt: added dart2wasm inline pragma. Change-Id: I1fd2b6a94e74e1565ba87068299cb80f5a0e9e94 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/405480 Reviewed-by: Martin Kustermann <[email protected]> Commit-Queue: Ömer Ağacan <[email protected]>
1 parent 8ed5503 commit da9de5a

File tree

2 files changed

+250
-96
lines changed

2 files changed

+250
-96
lines changed

0 commit comments

Comments
 (0)