You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
when calling Rust bindings from JavaScript code we get some execution performance penalty due to an additional code which needs to be executed because of a bridge between two different programming languages
A good example are functions StateReadWriter.set() and StateReadWriter.get() in state_db.js file. In these two functions there are multiple Rust binding calls. Because these two functions are heavily used, overall code execution performance is slow because of a lot of bridge calls between JavaScript and Rust code.
develop an idea how such JavaScript functions could have less Rust function calls
Acceptance Criteria
JavaScript code has less Rust function calls
Additional Information
one idea is that JavaScript part of lisk-db will have it's own temporary database/cache to store and read data inside it and only call Rust code in case that expected data won't be present in its database/cache
The text was updated successfully, but these errors were encountered:
Description
StateReadWriter.set()
andStateReadWriter.get()
in state_db.js file. In these two functions there are multiple Rust binding calls. Because these two functions are heavily used, overall code execution performance is slow because of a lot of bridge calls between JavaScript and Rust code.Acceptance Criteria
Additional Information
The text was updated successfully, but these errors were encountered: