-
Notifications
You must be signed in to change notification settings - Fork 26
Closed
Description
Motivation
This causes performance issue in protons, see ipfs/protons#51 (comment)
Description
Benchmark shows that toString() takes > 10x times to convert to a utf8 string, compared to protobuf
✔ string decode 1.831166e+7 ops/s 54.61000 ns/op - 5138306 runs 30.1 s
✔ string decode using protobuf 2.288330e+8 ops/s 4.370000 ns/op - 41186303 runs 30.1 s
reference implementation: https://github.com/protobufjs/protobuf.js/blob/6f0806ddef408647fbaed049dbd8929ad9f5c10c/lib/utf8/index.js#L40-L62
achingbrain
Metadata
Metadata
Assignees
Labels
No labels