Light-list is a linked list library implemented in C language. Although its code size is small, it provides rich traversal syntactic sugar.
It does not has any external dependency, so just make it directly in the project root directory.
cd light-list
make
After you finish compiling above, you can run some simple tests.
./examples/benchmark
Here is the output of benchmark:
Generate 1000000 Node:
real time: 0.030000
user time: 0.020000
kern time: 0.000000
List sort:
real time: 0.170000
user time: 0.170000
kern time: 0.000000
List for each:
real time: 0.070000
user time: 0.070000
kern time: 0.000000
Deletion All Node...
Done.
Light-rbtree library requires only two files to complete the migration.
src/sort.c
src/list.h
This is an open source list library, which uses the GPLV2 protocol
The Tencent QQ Group number is: 763756024