Code Monkey home page Code Monkey logo

mulle-storage's Introduction

mulle-storage

๐Ÿ›… Memory management for tree nodes

Why not just use malloc ? mulle-storage can be useful as a storage for nodes of a tree. It's likely faster and it may produce less fragmentation and it may improve locality of reference. Freed nodes will be reused. All the tree nodes can be "blown" away at once, without having to free each node individually.

Why is not a mulle_structarray ? A struct array would have holes, when nodes are freed randomly. Also freed nodes on their own would need to be managed externally. mulle-storage does this, but uses a struct queue instead, so it does not have to deal with holes.

Release Version Release Notes
Mulle kybernetiK tag Build Status RELEASENOTES

You are here

Overview

Add

This project is a component of the mulle-core library. As such you usually will not add or install it individually, unless you specifically do not want to link against mulle-core.

Add as an individual component

Use mulle-sde to add mulle-storage to your project:

mulle-sde add github:mulle-c/mulle-storage

To only add the sources of mulle-storage with dependency sources use clib:

clib install --out src/mulle-c mulle-c/mulle-storage

Add -isystem src/mulle-c to your CFLAGS and compile all the sources that were downloaded with your project.

Install

Install with mulle-sde

Use mulle-sde to build and install mulle-storage and all dependencies:

mulle-sde install --prefix /usr/local \
   https://github.com/mulle-c/mulle-storage/archive/latest.tar.gz

Manual Installation

Install the requirements:

Requirements Description
mulle-container ๐Ÿ›„ Arrays, hashtables and a queue

Download the latest tar or zip archive and unpack it.

Install mulle-storage into /usr/local with cmake:

cmake -B build \
      -DCMAKE_INSTALL_PREFIX=/usr/local \
      -DCMAKE_PREFIX_PATH=/usr/local \
      -DCMAKE_BUILD_TYPE=Release &&
cmake --build build --config Release &&
cmake --install build --config Release

Author

Nat! for Mulle kybernetiK

mulle-storage's People

Contributors

mulle-nat avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.