Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/felix-cfzhou/word_completion

A blazing fast thread-safe word completion engine
https://github.com/felix-cfzhou/word_completion

Last synced: 2 months ago
JSON representation

A blazing fast thread-safe word completion engine

Awesome Lists containing this project

README

        

# Pleter
is a fast thread-safe word completion engine

## Implementation
We are currently using a variation of range trees consisting of a compressed trie and sorted arrays

## Concurrency
Pleter features fine-grained read-write lock hierarchies which eliminates data races and deadlock while still permitting large amounts of parallelism should you need it.

Our hand in hand locking scheme allow us to update a subtrie while all other subtries are being read from or written to.

## Testing
See if it work with
```bash
make
./main combined_preprocessed.txt | tail -n 1
```
the displayed number is the average nanoseconds per word processed