Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Minor optimizations #1943

Merged
merged 1 commit into from Aug 18, 2016
Merged

Minor optimizations #1943

merged 1 commit into from Aug 18, 2016

Conversation

arkpar
Copy link
Collaborator

@arkpar arkpar commented Aug 17, 2016

No description provided.

@arkpar arkpar added the A3-inprogress ⏳ Pull request is in progress. No review needed at this stage. label Aug 17, 2016
@rphmeier
Copy link
Contributor

rphmeier commented Aug 17, 2016

why not roll the address hash cache into State?
Then Account never has to know about its Address and removing the interior mutability of State can be done in one fell swoop.

@arkpar
Copy link
Collaborator Author

arkpar commented Aug 17, 2016

I thought about that and caching inside Account looks like the most simple solution for now. Introducing an additional structure in the State that would hold the Account and Address cache would make State code more complicated and harder to follow. Introducing a HashMap for address cache would result in additional hashmap lookup.

@arkpar arkpar added A0-pleasereview 🤓 Pull request needs code review. A3-inprogress ⏳ Pull request is in progress. No review needed at this stage. and removed A3-inprogress ⏳ Pull request is in progress. No review needed at this stage. A0-pleasereview 🤓 Pull request needs code review. labels Aug 17, 2016
@arkpar arkpar added A0-pleasereview 🤓 Pull request needs code review. and removed A3-inprogress ⏳ Pull request is in progress. No review needed at this stage. labels Aug 17, 2016
@rphmeier rphmeier added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Aug 17, 2016
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 87.067% when pulling a4e7e82 on state-optimize into bcf6b0b on master.

@gavofyork gavofyork merged commit 108024e into master Aug 18, 2016
@gavofyork gavofyork deleted the state-optimize branch August 18, 2016 07:42
arkpar added a commit that referenced this pull request Sep 11, 2016
arkpar added a commit that referenced this pull request Sep 11, 2016
* Fix several RPCs (#1926)

* Fix up pending receipts details.

* Add support for additional params and registry over RPC.

* Fix tests.

* Add test, additional fix.

Fixes #1932.

* Fix up tests.

* Fix test.

* Fix test.

* DB WAL size limit (#1935)

* Limit WAL size

* Check pruning by db modification date (#1924)

* Cache address hash (#1943)

* ECIES without MAC (#1948)

* Use random IV for ECIES AES

* ECIES encrypt/decrypt for a single message

* Derive IV from shared secret

* Apply settings to column families

* fixed #1933 (#1979)

* Fixed neighbours collection (#1996)

* dapps-hosts configuration

* Disabled counter check

* always process trie death row on commit, add more tracing

* fixed transaction addresses mapping, fixes #1971

* simplified iterator

* v1.3.1

* v1.3.1
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants