| commit | e0a317a155ffe2c0f34cdc23611abbe4b65fa213 | [log] [tgz] |
|---|---|---|
| author | Drew Fisher <zarvox@fuchsia.infra.roller.google.com> | Wed Apr 06 17:46:15 2022 +0000 |
| committer | Copybara-Service <copybara-worker@google.com> | Wed Apr 06 10:48:04 2022 -0700 |
| tree | 7693ee8a68604eacc0c1494df0d804c236b029c8 | |
| parent | 62b3da79adb3157602fb89afb1806f1c549fe0bb [diff] |
[roll] Roll fuchsia [rust_crates] Always optimize scrypt for speed Cryptographic primitives frequently rely on strong compiler optimizations, especially around inlining, to achieve satisfactory performance. We've observed scrypt in `password_authenticator` taking as high as 20 seconds to derive a key when built in debug mode, when the equivalent computation takes less than a second in release mode. Enabling full optimizations for particularly affected cryptographic code even in debug builds has precedent in-tree -- we do the same for boringssl to avoid painfully slow zxcrypt and blobfs performance. This change switches the `scrypt` crate to always build optimized for speed, which appears to reliably bring the wait at login time down from dozens of seconds to under 2 seconds, of which only 150 msec are spent on key derivation. Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/666595 Original-Revision: 9211a353e0a0d8312c5a94401742d21aede7d44f GitOrigin-RevId: 86721f117f65251bac0bc277aa1a7bf9f2e6d296 Change-Id: I5e22a75f5c9fd817c02dd3be318ceb92306fe5f9
This repository contains Fuchsia's Global Integration manifest files.
All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.
Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance via the IRC channel #fuchsia on Freenode.
First install Jiri.
Next run:
$ jiri init $ jiri import minimal https://fuchsia.googlesource.com/integration $ jiri update
Third party projects should have their own subdirectory in ./third_party.