Skip to content

Performance Degradation from 0.2.0 to 1.1.0 #7

Open

Description

@csek06

I've been using this wallet to generate vanity public addresses and have found a degradation in performance from version 0.2.0 to 1.1.0

Steps to reproduce
generate a list of 1,000 mnemomics (not using this wallet for)
convert those mnemonics to public addresses via below methods

hdwallet: HDWallet = HDWallet(cryptocurrency=EthereumMainnet)
def getAddress(seed, path):
	hdwallet.clean_derivation()
	hdwallet.from_mnemonic(mnemonic=seed)
	hdwallet.from_path(path)
	address = str(hdwallet.address()).strip()
	return address

you will see that just by going from version 0.2.0 to 1.1.0 it's about 33% slower

Note - I did change the import statement to the newer version to make the code work...

from hdwallet.derivations import BIP44Derivation
hdwallet: BIP44HDWallet = BIP44HDWallet(cryptocurrency=EthereumMainnet)

Activity

  1. added a commit that references this issue on Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions