-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Verifying hash on .NET8 (MAUI app) running on Android api 34 takes long #168
Comments
Is it as slow at the hash function? |
Correct, I traced it and the loop where it calls 'Key' functions seems to be the slow part. Which makes some sense as it runs for the |
Are the times from running it in Windows or on a phone? |
* Add MauiApp to TestVariousVersionsOfDotNet to test bcrypt in Android (debugging #168)
Thanks @ChrisMcKee for checking this on your side. Will get back to you. |
All right, a couple of updates:
I will raise the second point to Xamarin/macios project. Thanks for looking at it. I guess this now close |
Cool. Not looked at how it plays in aot; I've found dotnets idea of AOT a bit hit and miss. |
@rbakhshi Your issues regarding discrepancies between Debug and Release builds for iOS could be linked to this issue: |
hey @durandt that is what are doing right now but that means I am actually looking to run it in release mode to gain the optimum performance. I have raised a related issue here if you are interested: dotnet/runtime#99248 |
Summary of what is wrong
Verify
method seems to take much longer in .net 8 using Android MAUI app.Details
We used same code on .NET5 and 6 and the time for
Verify
was negligible.Since porting our project to .NET8 I noticed login process takes much longer and narrowed it down to calling
Verify
method taking 3 seconds!Example code
Calling the above function with
111111
and hashed value of$2a$12$luf9xtzcPijRzyMnb1PxsuqFUsBba0ve.R.5k00XOsGf2awcHwj8a
takes 3 seconds.This is what I got from logs:
The text was updated successfully, but these errors were encountered: