Skip to content

Avoid frequent memory allocation/deallocation by memory pool #20

@jserv

Description

@jserv

Current PoW internals consist of various malloc and free, which are called frequently. It is bad for performance considerations. Using memory pool is a common technique to speed up and ensure consistent execution time.

I have done preliminary memory pool: https://github.com/jserv/dcurl/tree/memory-pool
NOTE: we might have to manipulate with thread-safe issues, and check out existing implementations such as philip-wernersbach/memory-pool-allocator.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestfeatureOutstanding features we should implement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions