a2f246c2a6
Uses the fastest slice making idiom of creating the well known size of a slice using make([]sdk.Attribute, len(response.Logs)) for i, log := range response.Logs { txLogAttrs[i] = ... } instead of make([]sdk.Attribute, 0) for _, log := range response.Logs { txLogAttrs = append(txLogAttrs, ...) } which had a few problems: 1. Using 0 for size then appending is quite slow yet we know the exact size 2. Using append instead of indexing is slower If we examine the advisory at https://bencher.orijtech.com/perfclinic/sliceupdate/ and the verdict at https://bencher.orijtech.com/perfclinic/sliceupdate/#verdict this new scheme shows a massive improvement in that call site. Fixes #825 |
||
---|---|---|
.bencher | ||
.github | ||
app | ||
client | ||
cmd | ||
contrib/scripts | ||
crypto | ||
docs | ||
encoding | ||
networks/local | ||
proto | ||
rpc | ||
scripts | ||
server | ||
tests | ||
testutil/network | ||
third_party/proto | ||
tools | ||
types | ||
version | ||
x | ||
.clang-format | ||
.dockerignore | ||
.gitattributes | ||
.gitignore | ||
.golangci.yml | ||
.goreleaser.yml | ||
.mergify.yml | ||
buf.work.yaml | ||
CHANGELOG.md | ||
CODE_OF_CONDUCT.md | ||
codecov.yml | ||
CONTRIBUTING.md | ||
docker-compose.yml | ||
Dockerfile | ||
go.mod | ||
go.sum | ||
init.bat | ||
init.sh | ||
LICENSE | ||
Makefile | ||
README.md | ||
starport.yml |
Ethermint
Ethermint is a scalable and interoperable Ethereum library, built on Proof-of-Stake with fast-finality using the Cosmos SDK which runs on top of Tendermint Core consensus engine.
Note: Requires Go 1.17+
Installation
For prerequisites and detailed build instructions please read the Evmos Installation instructions. Once the dependencies are installed, run:
make install
Or check out the latest release.
Quick Start
To learn how the Ethermint works from a high-level perspective, go to the Introduction section from the documentation. You can also check the instructions to Run a Node.
For an example on how Ethermint can be used on any Cosmos-SDK chain, please refer to Evmos.
Community
The following chat channels and forums are a great spot to ask questions about Ethermint:
Contributing
Looking for a good place to start contributing? Check out some good first issues
.
For additional instructions, standards and style guides, please refer to the Contributing document.
Careers
See our open positions on Cosmos Jobs, Notion, or feel free to reach out via email.