From 12e68a3411b1c9722219627ae8bc485b8a3cf4a6 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 16 Sep 2021 15:06:21 +0200 Subject: [PATCH] perf: Speedup coins.AmountOf() by removing many regex calls (backport #10021) (#10166) * perf: Speedup coins.AmountOf() by removing many regex calls (#10021) (cherry picked from commit ed35bfdf52ec18af497fc04787cdb509562af95e) # Conflicts: # CHANGELOG.md * fix conflict * fix changelog Co-authored-by: Dev Ojha Co-authored-by: Robert Zaremba --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index cfe08c13ccf6..50ae73502d60 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,9 @@ Ref: https://keepachangelog.com/en/1.0.0/ ## [Unreleased] +### Improvements +* (types) [\#10021](https://github.com/cosmos/cosmos-sdk/pull/10021) Speedup coins.AmountOf(), by removing many intermittent regex calls. + ### Bug Fixes * (x/genutil) [#10104](https://github.com/cosmos/cosmos-sdk/pull/10104) Ensure the `init` command reads the `--home` flag value correctly.