Skip to content
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

Refactor the file into multiple layers: #6

Open
jakub-wojciechowski opened this issue Sep 11, 2018 · 1 comment
Open

Refactor the file into multiple layers: #6

jakub-wojciechowski opened this issue Sep 11, 2018 · 1 comment

Comments

@jakub-wojciechowski
Copy link
Member

  1. Low level readings (stateDbReader): Db connection, prefixes, transformations (bufferHex, bufferToInt, buffer64, buffer256, sha3, atStruct, atMap, blockNumberByHash, blockHash, _blockHeader..... getNode)

  2. Trie traversals (stateDbFinder): (_sfind, binarySearchCreation, findNextBlock, _errorCheck)

  3. Data extractors (dbExtractor): (_getRange, getRange, getRangeMulti)

  4. Query splitter: logic when we try to split the data range into chunks and execute them in parallel not to waste time waiting for IO db operations (btw. is there a n value that brings the bests results?)

  5. High level api to provide one function per one method used (simple, hash, lastPath) - taken from /test/samples.

@adamjabone
Copy link
Collaborator

Done. Every layer is extension of lower layer.

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

No branches or pull requests

2 participants