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
we see that for every coin we invoke sdk.ZeroInt() and that has a real cost added trying to find the first non-zero coin
Suggestion
We can remove these unnecessary costs entirely by creating a global variable then using it in the comparisons to remove those unnecessary high costs and allocations
If we examine a bunch of loops like
noble/x/tariff/keeper/allocation.go
Lines 11 to 15 in d809e7e
noble/x/tariff/keeper/allocation.go
Lines 27 to 32 in d809e7e
noble/x/tariff/keeper/allocation.go
Lines 44 to 48 in d809e7e
noble/x/tariff/keeper/keeper.go
Line 84 in d809e7e
we see that for every coin we invoke sdk.ZeroInt() and that has a real cost added trying to find the first non-zero coin
Suggestion
We can remove these unnecessary costs entirely by creating a global variable then using it in the comparisons to remove those unnecessary high costs and allocations
The text was updated successfully, but these errors were encountered: