Coder Social home page Coder Social logo

swofford / libjudy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from netdata/libjudy

0.0 0.0 0.0 61.1 MB

Fork of the Judy C library for dynamic array originally imported from the SF project https://sourceforge.net/projects/judy/ with patches applied for build and bug fixes.

Home Page: https://sourceforge.net/projects/judy/

License: Other

Shell 2.28% C++ 0.44% C 86.77% Gnuplot 8.83% Makefile 0.59% Batchfile 0.49% M4 0.61%

libjudy's Introduction

	     Judy - C library creating and accessing dynamic arrays
	 ==============================================================

Content
---------

 1. Introduction
 2. Directory Contents
 3. How to install
 4. License
 5. Change History
 6. Reporting Bugs
 7. Known Issues


1. INTRODUCTION
-----------------

This tree contains sources, documents, tests, and tools for the Judy package.
This file is in a form that can be validated using the tool/readme script.

NOTE:  The README files here describe some files that are not included in
every Judy source package.

WHAT IS JUDY?  (see below for list of top-level directories and files)

Judy is a C library that implements a dynamic array.  Empty Judy arrays are
declared with null pointers.  A Judy array consumes memory only when
populated yet can grow to take advantage of all available memory.  Judy's key
benefits are:  scalability, performance, memory efficiency, and ease of use.
Judy arrays are designed to grow without tuning into the peta-element range,
scaling near O(log-base-256) -- 1 more RAM access at 256 X population.

Judy arrays are accessed with insert, retrieve, and delete calls for number
or string indexes.  Configuration and tuning are not required -- in fact not
possible.  Judy offers sorting, counting, and neighbor/empty searching.
Indexes can be sequential, clustered, periodic, or random -- it doesn't
matter to the algorithm.  Judy arrays can be arranged hierarchically to
handle any bit patterns -- large indexes, sets of keys, etc.

Judy is often an improvement over common data structures such as:  arrays,
sparse arrays, hash tables, B-trees, binary trees, linear lists, skiplists,
other sort and search algorithms, and counting functions.


2. JUDY TOP DIRECTORY CONTENTS:
--------------------------------

AUTHORS		Judy authors and contributors
README		This file.
INSTALL		Summary  instructions to build, check and install Judy.
COPYING		Judy deliverable license notice (the LGPL).
ChangeLog	List of changes per version of Judy.

configure	Autoconf configure script to allow a portable build e
                environment. 
		
src/		Header and source files used to build the package.
doc/		Documents, both external (to the package) and internal.
test/		Test support and some timing programs.
tool/		Primitive tool (jhton) to convert *.html files to "man" pages.
                and build tables used by Judy to malloc() sizes of memory.

3. HOW TO INSTALL
-----------------

For a quick description see the INSTALL file. 

Judy is now based on the GNU Auto tools. This means that you can do the standard
configure, make, make check and make install and everything should work, with
one minor difference and a little caveat. 

Judy is capable of being built as a 32-bit or a 64-bit library. Configure
will test to detect the native environment and default to that. Therefor if you
explicitly want to to compile for the non-native environment you need to tell
Judy what you want. You can run ./configure with one of the following flags:
          
	  --enable-32-bit 
          --enable-64-bit 

The caveat comes in on machines that support both at 32-bit and 64-bit runtime
environments such as RISC platforms and x86-64. In this case your compiler will
either use 32-bit or 64-bit as default. If you plan to use the default you can
follow the above instructions and be finished. 

However, if you wish to compile for the non-default target type. YOU ARE
RESPONSIBLE FOR SETTING THE CORRECT FLAGS! Such as CFLAGS to make your compiler
switch modes LDFLAGS to make your linker behave, etc. 

For example: On HP-UX PA-RISC the compiler generates 32-bit code by default. If
I wish to stick with the defaults I can simply build Judy by: 
   ./configure
   make
   make check
   make install 

If I want to build Judy as a 64-bit library on HP-UX PA-RISC I have to do:
   CFLAGS=+DD64 ./configure --enable-64-bit 
   make 
   make check 
   make install 

If I want to build Judy native (64-bit) on Linux AMD64 I have to do:
   ./configure
   make
   make check
   make install 

If I want to build Judy 32-bit on Linux AMD64 I have to do:
   ./configure --enable-32-bit 
   make 
   make check 
   make install 

4. LICENSE
----------

The user library is licensed under the GNU Lesser Public License (LGPL)
Version 2.1, February 1999.  The full text of the LGPL is located at:

COPYING


5. CHAGE HISTORY
----------------

See the ChangeLog file.

6. REPORTING BUGS
-----------------

If you encounter a bug, please submit it to the project bug list, 
located on the project page:

    https://sourceforge.net/projects/judy/

7. KNOWN ISSUES
---------------

When compiling on HP-UX, you may get a message like: 
 error 1000: Unexpected symbol: 

This is a problem with the HP's compiler in that it doesn't like a typedef'ed
type following a static inline.

You can work around it by running this command from the Judy directory. 

find ./ -name \*.[ch] | xargs perl -i.BAK -pe 's/static inline/static/g'

libjudy's People

Contributors

ferroin avatar prologic 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.