Skip to content

Comments

perf: another tiny improvement in scrypt#123

Draft
ChALkeR wants to merge 1 commit intopaulmillr:mainfrom
ChALkeR:chalker/perf/scrypt/1
Draft

perf: another tiny improvement in scrypt#123
ChALkeR wants to merge 1 commit intopaulmillr:mainfrom
ChALkeR:chalker/perf/scrypt/1

Conversation

@ChALkeR
Copy link
Contributor

@ChALkeR ChALkeR commented Sep 18, 2025

Depends on #122

I observe another 2.5% improvement on v8
i.e. setting A to B and then doing A[i] ^= C[i] in a loop seems to be faster than A[i] = B[i] ^ C[i]

The outer V0.set is just for clarity, it doesn't affect perf

Will recheck on other engines once #122 gets in

@ChALkeR ChALkeR changed the title Chalker/perf/scrypt/1 perf: another tiny improvement in scrypt Sep 18, 2025
@paulmillr
Copy link
Owner

and how does that compare now?

@ChALkeR ChALkeR force-pushed the chalker/perf/scrypt/1 branch from 53f0b42 to ca98810 Compare September 20, 2025 06:46
@ChALkeR ChALkeR marked this pull request as draft September 20, 2025 06:48
@ChALkeR
Copy link
Contributor Author

ChALkeR commented Sep 20, 2025

will recheck perf, do not merge yet

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