Categorygithub.com/arcology-network/common-lib
repository
2.2.0+incompatible
Repository: https://github.com/arcology-network/common-lib.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

common-lib

common-lib is a Golang library designed for the Arcology Network, providing a range of tools and utilities used across different modules within the system.

common

The common package comprises utility and generic functions used in different project modules.

  • generic.go: Generic functions applicable to different types of data 🔥

  • Parallel Utilities: Tools for parallel processing, efficiently distributing work among multiple ranges and assigning each range to a dedicated worker function.

  • Basic Math Functions: Some mathematical operations. 🧮

codec

An efficient encoding/decoding library focused on performance and parallelism, primarily used for internal inter-process communication among modules.

addrcompression

Fast data compression is achieved using a lookup table, replacing addresses with corresponding index numbers.

mempool

Ensuring thread safety, Mempool is responsible for managing a pool of objects of the same type.

container

This package introduces custom data structures tailored for memory/storage optimization and concurrent uses.

PackageDescription
datastoreA high-level datastore designed to handle state transition persistency.
filedbA file database.
memDBA high-performance DB for concurrent use utilizing a concurrent map.
bager DBBagerDB wrapper.

storage

This package facilitates Files DBs, memory DB, and offers wrappers for various third-party DB implementations.

PackageDescription
datastoreA high-level datastore designed to handle state transition persistency.
filedbA file database.
memDBA high-performance DB for concurrent use utilizing a concurrent map.
bager DBA BagerDB wrapper.

Usage

For detailed instructions and examples to assist users in integrating and utilizing the common-lib library, please check out the source code.

License

This project is licensed under the MIT License.