package plebeia
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Functional storage using Merkle Patricia tree
Install
dune-project
Dependency
Authors
Maintainers
Sources
plebeia-2.0.0.tar.gz
md5=f528f42d3e72d400265eb6bc51901fca
sha512=6cf070b2f1ea2e570a106b231a7e8e40c64c91c5a7abeddf072a5c413e74d5d9dd9b7df674cca559ddb33cabc9c0ec0b3a001306397d11b62888aac4cca9fd7e
doc/plebeia/Plebeia/Context/index.html
Module Plebeia.ContextSource
1 Merkle Patricia tree storage
2 Types
Source
type t = {storage : Storage.t;hashcons : Hashcons.t;node_cache : Index.t Node_cache.t;stat : Stat.t;hash : Hash.Hasher.t;keep_hash : bool;bytes_per_cell : int;
}Configuration which affect data file and hashes
Build the config. Do not call it in busy loops since it allocates a record
Source
val memory_only :
?hashcons:Hashcons.config ->
?bytes_per_cell:int ->
?hash_func:[ `Blake2B | `Blake3 ] ->
?bytes_per_hash:int ->
?keep_hash:bool ->
unit ->
tCreate a memory_only context.
Commiting nodes of a memory only context fails.
Source
val create :
?hashcons:Hashcons.config ->
?node_cache:Index.t Node_cache.t ->
?bytes_per_cell:int ->
?hash_func:[ `Blake2B | `Blake3 ] ->
?bytes_per_hash:int ->
?resize_step_bytes:int ->
?keep_hash:bool ->
string ->
t Lwt.tCreate a new context storage. Note that if the file already exists, create fails.
The context is created in Writer mode.
length: initial size of the file in bytes
Source
val open_ :
?hashcons:Hashcons.config ->
?node_cache:Index.t Node_cache.t ->
mode:Storage.mode ->
?bytes_per_cell:int ->
?hash_func:[ `Blake2B | `Blake3 ] ->
?bytes_per_hash:int ->
?resize_step_bytes:int ->
?keep_hash:bool ->
string ->
t Lwt.tOpen an existing context storage.
Closes the context.
If program exits or crashes without closing a context, some data may be lost, even if they are written on the disk.
Returns writing mode
It runs Obj.reachable_words which takes long time. Do not use in production.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>