Skip to content

knutin/judy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Judy - playground for learning C and NIFs

This project provides a NIF wrapper around Judy arrays and a chunk of memory, allowing memory efficient storage and fast retrieval of values. The library allocates and manages a large enough chunk of memory to store the values, using the Judy array for finding the proper offset into this chunk. Deletion is currently not supported.

See eunit tests in src/judy.erl for examples.

Usage:

    {ok, J} = judy:new(100, 2).
    ok = judy:insert(J, <<"some key">>, <<123, 123>>).
    <<123, 123>> = judy:get(J, <<"some key">>).

About

Erlang NIF interface to Judy arrays

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published