You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code to compute the cost of an RsaSha256Condition has a massive performance penalty because it initializes an array on every call, among other expensive operations.
Instead, we can do what the JS library does to improve performance:
The code to compute the cost of an
RsaSha256Condition
has a massive performance penalty because it initializes an array on every call, among other expensive operations.Instead, we can do what the JS library does to improve performance:
For posterity, this test harness shows the difference in performance:
...yielding:
All 3 (
NUM_REPS = 30_000_000L
)POW vs Mult (
NUM_REPS = 30_000_000_000L
)Other Links
The text was updated successfully, but these errors were encountered: