Questions tagged [judy-array]

A Judy array is a data structure that has high performance, low memory usage and implements an associative array. Unlike normal arrays, Judy arrays may be sparse, that is, they may have large ranges of unassigned indices.

In computer science and software engineering, a Judy array is a data structure that has high performance, low memory usage and implements an associative array. Unlike normal arrays, Judy arrays may be sparse, that is, they may have large ranges of unassigned indices. They can be used for storing and looking up values using integer or string keys. The key benefits of using a Judy array is its scalability, high performance, memory efficiency and ease of use.

Judy arrays are both speed- and memory-efficient[clarification needed], with no tuning or configuration required and therefore they can sometime replace common in-memory dictionary implementations (like red-black trees or hash tables) and work better with very large data sets[dubious – discuss][citation needed].

Roughly speaking, Judy arrays are highly-optimised 256-ary radix trees. To make memory consumption small, Judy arrays use over 20 different compression techniques to compress trie nodes.

The Judy array was invented by Douglas Baskins and named after his sister.

Wikipedia: http://en.wikipedia.org/wiki/Judy_array

9 questions
7
votes
0 answers

Possible to use Judy array in Java?

I'm impressed by the memory foot print of Judy Array in one of my Python experiment (another thread). Is there anyway to use it in Java (the c lib or any ported version)? If no, any alternative can provide similar benefit?
Jason Xu
  • 2,903
  • 5
  • 31
  • 54
1
vote
0 answers

Set of structures being marked as undefined in 32 bit build of Judy Arrays but not 64 bit?

I am trying to test out using Judy Arrays. I wrote a short program that essentially tests simply inserting and retrieving strings from a Judy Array, using the JSLI and JSLG functions. The program inserts a list of strings, then finds them and prints…
Rhett L
  • 31
  • 1
1
vote
0 answers

multidimensional Judy array

Im trying to adapt Judy into my code using it almost as a conventional php array but i am having a bad time trying to access the multidimensional array. Everytime i try to print a nested key value i get a NULL. how can i iterate through my…
Andre Garcia
  • 894
  • 11
  • 30
1
vote
0 answers

Judy Array errors on compilation under RHEL 6

I have RHEL6 server, and try to compile Judy array library for php 5.3 . I got sources from sourceforge, installed rpm for judy, made link with ln -s in =/usr/local/src/Judy-1.0.2/include to libJudy.so.1 that was installed with RPM. But there is…
Altenrion
  • 764
  • 3
  • 14
  • 35
0
votes
1 answer

Can someone explain this line from the Judy data structure documentation?

http://judy.sourceforge.net/downloads/10minutes.htm Question -- Why would only 4 cache-line fills be required? Isn't the cache line 64-bytes these days? With an expanse of 2^32 (or 256^4), a maximum of 4 cache-line fills would be required for a…
user855
  • 19,048
  • 38
  • 98
  • 162
0
votes
1 answer

PHP Judy installation on Windows

I'm new to php and I'd like to use Judy Arrays on windows and I'm having troubles with installation. I followed steps on page http://php.net/manual/en/judy.installation.php and I get to the step where I've got "Judy.lib" file but I don't know what…
Hoostee
  • 1
  • 3
0
votes
1 answer

C: How to insert and read a string to/from a Judy Hash

I've been searching around for a while to get an answer but I am still very unclear on what I am supposed to do. In all the official examples all the Values and indexes and pointers to them are of the type Word_t or PWord_t, which as far as I can…
Christopher Reid
  • 4,318
  • 3
  • 35
  • 74
0
votes
1 answer

Finding incorrect implementation of JudyArray

I'm trying to give a better error report (possible bug) for this case (about judySArray give incorrect result, but I don't know which key that give incorrect result). The code here from this folder, note on this blog. Dependencies: judySArray.h and…
Kokizzu
  • 24,974
  • 37
  • 137
  • 233
0
votes
1 answer

Concurrent use of Judy Array

I want a key value data structure which can support concurrent read operations by multiple threads in C support for 1M key values. I suppose Judy array is good both in terms of memory consumption & speed. How does it stand in comparison to standard…