flippingbits / cssl Goto Github PK
View Code? Open in Web Editor NEWCache-Sensitive Skip List.
License: Apache License 2.0
Cache-Sensitive Skip List.
License: Apache License 2.0
I have ported this to Java. This may or may not be worthwhile since it's not possible to explicitly vectorise the search for the end key in searchRange
, but measuring the performance will be interesting nonetheless.
Do you have some test cases that verify the data structure's correctness? I would like to use these as sanity checks for my port.
The function below segfaults, but works fine with dense lists (my compiler is gcc 7.2.0, OS Windows). Please confirm if you can reproduce this or if I have done something silly.
#include <stdio.h>
#include <string.h>
#include "skiplist.h"
void sanity_test() {
_CSSL_SkipList* slist = createSkipList(9, 5);
for (int i = 0; i < 100000; i += 1000) {
insertElement(slist, i);
}
_CSSL_RangeSearchResult result = searchRange(slist, 500, 2500);
printf("Result = %d", result.count);
printf("First = %d", result.start->key);
printf("Last = %d", result.end->key);
}
Adding every hundredth integer to the skip list produces an incorrect number of matches (0, 20 expected), but does not segfault.
This skiplist can only insert sorted data?
I noticed the range search uses unaligned vector loads. It would be interesting to see how much better the performance is with aligned fast lanes (allowing the use of _mm256_load_si256 instead of _mm256_loadu_si256).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.