Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

IS-1029: Array Optimization hotfix #424

Merged
merged 2 commits into from
Mar 11, 2020

Conversation

cow-hs
Copy link
Contributor

@cow-hs cow-hs commented Mar 10, 2020

  • cache prefix_hash_key

* cache prefix_hash_key

return b'|'.join(data)
return b''.join((self.prefix_hash_key, key))
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
return b''.join((self.prefix_hash_key, key))
return b'|'.join((self.prefix_hash_key, key))

@@ -384,6 +384,14 @@ def __init__(self,
self._context_db = context_db
self._observer: Optional[DatabaseObserver] = None

self.prefix_hash_key: bytes = self._make_prefix_hash_key()
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
self.prefix_hash_key: bytes = self._make_prefix_hash_key()
self._prefix_hash_key: bytes = self._make_prefix_hash_key()

* self.prefix_hash_key -> self._prefix_hash_key
* Remove concatenation operator "+" from _make_prefix_hash_key()
* Change an error message in DictDB: "Not Supported iter function on DictDB" -> "Iteration not supported in DictDB"
@cow-hs cow-hs merged commit d13fbb9 into release-1.6.1 Mar 11, 2020
@cow-hs cow-hs deleted the IS-1029-hotfix-arraydb-optimization branch March 11, 2020 23:46
goldworm-icon added a commit that referenced this pull request Apr 10, 2020
* Merge hotfix patch into develop branch
* IS-1015: Adjust the number of transactions in a block by execution time
* IS-1024: Add sha_256 function for SCORE development
* IS-1029: Array Optimization hotfix (#424)
* IS-1042: fix Fee 2.0 bug
* Prevent DictDB iteration officially
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants