diff options
| author | Hanif Bin Ariffin <hanif.ariffin.4326@gmail.com> | 2020-09-17 10:56:08 +0800 |
|---|---|---|
| committer | Hanif Bin Ariffin <hanif.ariffin.4326@gmail.com> | 2020-09-17 11:03:08 +0800 |
| commit | f4a7149f499a4b91d296678002f0bce4ded85038 (patch) | |
| tree | c852698c0cfae5399c25135f1fc58990f8a3fa0f /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs | |
| parent | 285fc7d704fcdd7b2a37d475d04d5d955490e000 (diff) | |
| download | rust-f4a7149f499a4b91d296678002f0bce4ded85038.tar.gz rust-f4a7149f499a4b91d296678002f0bce4ded85038.zip | |
Don't compile regex at every function call.
Use `SyncOnceCell` to only compile it once. I believe this still adds some kind of locking mechanism?
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions
