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

Update cache usage on commiting block info #1871

Merged
merged 1 commit into from Aug 8, 2016
Merged

Update cache usage on commiting block info #1871

merged 1 commit into from Aug 8, 2016

Conversation

arkpar
Copy link
Collaborator

@arkpar arkpar commented Aug 8, 2016

No description provided.

@arkpar arkpar added the A0-pleasereview 🤓 Pull request needs code review. label Aug 8, 2016
@coveralls
Copy link

coveralls commented Aug 8, 2016

Coverage Status

Coverage increased (+0.02%) to 86.377% when pulling a82bec8 on bc-cache-fix into 4f32a9c on master.

}
for hash in pending_write_txs.keys() {
self.note_used(CacheID::TransactionAddresses(hash.clone()));
}
Copy link
Contributor

Choose a reason for hiding this comment

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

each call to note_used is acquiring a write lock on the cache manager. we could improve throughput here by acquiring it once before all of the updates.

Copy link
Collaborator Author

@arkpar arkpar Aug 8, 2016

Choose a reason for hiding this comment

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

@debris is working on that

@rphmeier rphmeier added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Aug 8, 2016
@rphmeier
Copy link
Contributor

rphmeier commented Aug 8, 2016

LGTM, but we should prepare a PR to get rid of note_used as it encourages excessive locking (in more places than just this)

@arkpar arkpar merged commit 35451e3 into master Aug 8, 2016
@gavofyork gavofyork deleted the bc-cache-fix branch August 8, 2016 11:49
arkpar added a commit that referenced this pull request Aug 9, 2016
* Sync to peers with confirmed fork block only (#1863)

* Fixing gas conversion

* Validating u256->usize conversion

* Update cache usage on commiting block info (#1871)

* Use UntrustedRlp for block verification (#1872)

* take snapshot at specified block and slightly better informants (#1873)

* prettier informant for snapshot creation

* allow taking snapshot at a given block

* minor tweaks

* elaborate on cli

* Send new block hashes to all peers (#1875)

* Reduce max open files (#1876)

* ws-rs update

* Fixing test

* Fixing miner deadlock (#1885)
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

3 participants