Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid adding empty splices in
CodedBufferWriter
By avoiding allocating empty `Uint8List`s this saves a few percent in dart2js -O4 in the benchmark reported in google#885. | | Before | After | Diff | |------------------------------|------------|------------|---------------------| | AOT | 122,917 us | 122,741 us | | | JIT | 93,376 us | 94,880 us | | | dart2js -O4 | 271,111 us | 258,250 us | -12,861 us, -4.7% | | dart2wasm --omit-type-checks | 196,454 us | 195,300 us | | Number of splices in the benchmark before this change: 21,123 After: 20,857
- Loading branch information