Skip to content

perf: improve getRandomBase64 android performance by 24x - #63

Closed
samuelscheit wants to merge 1 commit into
LinusU:masterfrom
samuelscheit:master
Closed

samuelscheit wants to merge 1 commit into
LinusU:masterfrom
samuelscheit:master

Conversation

@samuelscheit

Copy link
Copy Markdown
Contributor

For each getRandomBase64() call a new SecureRandom instance is created, which is very expensive.
I sped it up by creating an instance only once and then reusing it.

RNGetRandomValues

@LinusU

LinusU commented Oct 22, 2025

Copy link
Copy Markdown
Owner

Sorry for the long delay!

I've landed this here: 713e274

It's in this release: 🚢 2.0.0 / 2025-10-22

@LinusU LinusU closed this Oct 22, 2025
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.

2 participants