Skip to content
This repository has been archived by the owner on Oct 9, 2022. It is now read-only.

Optimize the performance of shadow service #72

Merged
merged 20 commits into from
Sep 5, 2020
Merged

Optimize the performance of shadow service #72

merged 20 commits into from
Sep 5, 2020

Conversation

clearloop
Copy link
Collaborator

@clearloop clearloop commented Sep 2, 2020

Steps

  • Share HTTP client and db connections in HTTP handlers
  • Use rocksdb instead of SQLite3

Note

This pr after #69

@clearloop
Copy link
Collaborator Author

clearloop commented Sep 3, 2020

--- stderr
thread 'main' panicked at 'Unable to find libclang: "the `libclang` shared library at /usr/lib/libclang.so.10 could not be opened: Dynamic loading not supported"', /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/bindgen-0.54.0/src/lib.rs:1959:13

musl build failed, similar issues at:

@hackfisher
Copy link
Contributor

I think db replacement(to rocksdb) may not be the bottleneck, the bottleneck is db read/write. should try memory cache.

https://github.com/nervosnetwork/merkle-mountain-range/blob/master/src/mmr_store.rs#L5

https://github.com/nervosnetwork/merkle-mountain-range/blob/master/src/mmr.rs#L19

@clearloop clearloop marked this pull request as ready for review September 5, 2020 08:46
@hackfisher hackfisher merged commit e937776 into next Sep 5, 2020
@hackfisher hackfisher deleted the rocksdb branch September 5, 2020 10:52
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.

3 participants