coder/coderd/util
Ammar Bandukwala 0d9010e150
chore: fix 30% startup time hit from userpassword (#12769)
pbkdf2 is too expensive to run in init, so this change makes it load
lazily. I introduced a lazy package that I hope to use more in my
`GODEBUG=inittrace=1` adventure.


Benchmark results:

```
$ hyperfine "coder --help" "coder-new --help"
Benchmark 1: coder --help
  Time (mean ± σ):      82.1 ms ±   3.8 ms    [User: 93.3 ms, System: 30.4 ms]
  Range (min … max):    72.2 ms …  90.7 ms    35 runs
 
Benchmark 2: coder-new --help
  Time (mean ± σ):      52.0 ms ±   4.3 ms    [User: 62.4 ms, System: 30.8 ms]
  Range (min … max):    41.9 ms …  62.2 ms    52 runs
 
Summary
  coder-new --help ran
    1.58 ± 0.15 times faster than coder --help
```
2024-03-26 20:47:14 -05:00
..
lazy chore: fix 30% startup time hit from userpassword (#12769) 2024-03-26 20:47:14 -05:00
ptr chore: add /v2 to import module path (#9072) 2023-08-18 18:55:43 +00:00
slice chore(Makefile): use linter version from dogfood Dockerfile (#11147) 2023-12-12 10:02:32 +00:00
strings feat(cli): allow specifying name of provisioner daemon (#11077) 2023-12-07 16:59:13 +00:00
syncmap test: add full OIDC fake IDP (#9317) 2023-08-25 14:34:07 -05:00
tz chore: add /v2 to import module path (#9072) 2023-08-18 18:55:43 +00:00
xio chore: add /v2 to import module path (#9072) 2023-08-18 18:55:43 +00:00