https://github.com/superauguste/fsi
Fast Streamlet Identifiers.
https://github.com/superauguste/fsi
Last synced: 9 months ago
JSON representation
Fast Streamlet Identifiers.
- Host: GitHub
- URL: https://github.com/superauguste/fsi
- Owner: SuperAuguste
- License: mit
- Created: 2020-01-04T20:34:40.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-04T20:38:23.000Z (over 6 years ago)
- Last Synced: 2025-09-03T14:48:31.205Z (9 months ago)
- Language: Go
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# FSI - Fast Streamlet Identifiers
FSI is a simple library that generates identifiers that respect Streamlet database format identifiers. It supports multithreading as it uses atomics.
## Format for Streamlet identifiers
22_random_base/10_incremental_numbers
Streamlet IDs are composed of the following: `22-length random base | "/" | 10-length incremental numbers`. An example Streamlet ID would be: `Hkh2bjNWQ4yxuMI++kTixA/0000000000`.
## Benchmarks
On average, it can achieve up to 6.5 million ops/sec on a single thread and 11 million ops/sec on 3 threads.