commit | aa20ddd0b83413d1332cd0e361488dad961b2c2f | [log] [tgz] |
---|---|---|
author | Zeling Feng <zeling@google.com> | Sat Aug 17 02:38:59 2019 +0000 |
committer | CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> | Sat Aug 17 02:38:59 2019 +0000 |
tree | a4578f1e3781e1bcc2a10765192e218177873509 | |
parent | 5c2f7673c2f431f2438e9d2e343bda56d772a8e4 [diff] |
[internet-checksum] Reuse `add_bytes` to implement `update`. - Benchmarks for `update` used to bias to big inputs. This was wrong because the real world use cases show that `update` is more likely to have small inputs. - Reuse the optimized `add_bytes` function to implement `update`. This reduces duplicated code and makes the implementation simpler. Also there is a speedup as a byproduct. Test: cargo test Test: cargo bench Change-Id: I39a9072ab20506c4cb02014b2565d84304172f29
Pink + Purple == Fuchsia (a new operating system)
Fuchsia is a modular, capability-based operating system. Fuchsia runs on modern 64-bit Intel and ARM processors.
Fuchsia is an open source project with a code of conduct that we expect everyone who interacts with the project to respect.
See Getting Started.
See fuchsia.dev.