Skip to content

chore: EthereumBloomFilter improvement #606

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

JeneaVranceanu
Copy link
Collaborator

Added docs, structured code a bit better, some refactoring with at least 10% improvement in the calculation of a filter.

This PR contains refactoring of bloom9 function.

The rest is just renaming a file, reordering of functions, documentation and one performance test.

…a bit better, some refactoring with at least 10% improvement in calculation of a filter.
static func bloom9(_ data: Data) -> BigUInt {
// TODO: update to match this implementation https://manbytesgnu.com/eth-log-bloom.html
// TODO: it will increase performance.
let b = data.sha3(.keccak256)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few comments left here with a link to the implementation of a bloom filter that should have better performance.
I'll open an issue so that we keep a record of that.

@yaroslavyaroslav
Copy link
Collaborator

Thank you, I'll merge it soon, after meeting my huge PR that merges all different transaction types into one.

@yaroslavyaroslav
Copy link
Collaborator

@JeneaVranceanu Sorry I've broke your PR, could you please update it?

@JeneaVranceanu
Copy link
Collaborator Author

@JeneaVranceanu Sorry I've broke your PR, could you please update it?

@yaroslavyaroslav Sure, no worries!

@JeneaVranceanu JeneaVranceanu changed the base branch from unstable to develop September 27, 2022 10:07
@JeneaVranceanu
Copy link
Collaborator Author

@yaroslavyaroslav Conflicts fixed.

@yaroslavyaroslav yaroslavyaroslav merged commit 53f1ec5 into web3swift-team:develop Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants