Skip to content

Simplify Mac instance creation#54

Open
jchambers wants to merge 1 commit into
mainfrom
simplify_mac_instance_creation
Open

Simplify Mac instance creation#54
jchambers wants to merge 1 commit into
mainfrom
simplify_mac_instance_creation

Conversation

@jchambers
Copy link
Copy Markdown
Owner

@jchambers jchambers commented May 24, 2026

I've gone back and forth about this over time, but the more time I spend with security stuff, the more I think "simple is better." This change simplifies Mac instance creation at the expense of a significant drop in throughput.

Here's throughput before this change:

Benchmark Throughput (ops/second) Error (ops/second)
benchmarkGenerateOneTimePassword 4309766.812 ± 403366.888
benchmarkGenerateOneTimePasswordString 2149525.122 ± 58567.632

…and after:

Benchmark Throughput (ops/second) Error (ops/second)
benchmarkGenerateOneTimePassword 3229016.541 ± 285390.240
benchmarkGenerateOneTimePasswordString 1841284.713 ± 65404.959

I'll leave this open for feedback for a while, but unless somebody objects, I'll plan to merge before the next release (whenever that happens—there's no pressing need for a new release right now).

@jchambers jchambers force-pushed the simplify_mac_instance_creation branch from 48be08f to f8541ee Compare May 24, 2026 21:31
@jchambers jchambers force-pushed the simplify_mac_instance_creation branch from f8541ee to 15aec63 Compare May 24, 2026 21:31
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