Skip to content

A fast sequential memory allocator that does not re-use memory, suited for benchmarking

License

Notifications You must be signed in to change notification settings

ricleite/seqmalloc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

seqmalloc is a naive, leaking malloc(3) implementation.

It ignores free() and attempts to do as little memory management as possible while still being malloc(3) compliant and actually useful.

seqmalloc can be used to:

  • speed-up short-lived applications where memory usage does not matter
  • as a baseline comparison against other memory allocators

Building

To compile, just download this repository and run:

make

This will produce seqmalloc.a and seqmalloc.so.

Usage

If successfully compiled, you can link with seqmalloc with your application at compile time with:

-lseqmalloc

or you can dynamically link it with your application by using LD_PRELOAD (if your application was not statically linked with another memory allocator).

LD_PRELOAD=seqmalloc.so ./your_application

Copyright

License: MIT

Read file COPYING

About

A fast sequential memory allocator that does not re-use memory, suited for benchmarking

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published