Skip to content

Conversation

@Oldes
Copy link
Contributor

@Oldes Oldes commented Feb 27, 2025

It's more optimal to use precomputed lengths...

Running 2 code blocks 10 times.
----------------------------------------------------------------------------------------------------------------------------------
Time               | Evals  | S.made | S.expa | Memory      | Code
1.0x (900ns)       | 2      | 0      | 0      | 0           | [select [sha1 20 sha224 28 sha256 32 sha384 48 sha512 64] 'sha512]
2.44x (2μs)        | 3      | 1      | 0      | 64          | [length? checksum #{} 'sha512]
----------------------------------------------------------------------------------------------------------------------------------

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant