This commit is contained in:
EntireTwix 2021-07-15 19:34:54 -07:00
parent 335fd4983c
commit c11bf24d90

View file

@ -1,19 +1,20 @@
[PREVIOUS PAGE](user_side.md) | [NEXT PAGE](../building.md) [PREVIOUS PAGE](user_side.md) | [NEXT PAGE](../building.md)
# Implementation Features # Implementation Features
## Multi-threading support
## Parallel Hashmap ## Parallel Hashmap
<!-- memory vs database --> <!-- memory vs database -->
<!-- phmap vs std hash map --> <!-- phmap vs std hash map -->
<!-- benefits from multi-threading -->
<!-- https://greg7mdp.github.io/parallel-hashmap/ --> <!-- https://greg7mdp.github.io/parallel-hashmap/ -->
### Scalability ### Scalability
below is `GetBal()` being called where `x` axis grows with # of users reaching 10 million users, `y` axis is time in ns. The name given is random between 0 and max users at that time as to provide more accurate results below is `GetBal()` being called where `x` axis grows with # of users reaching 10 million users, `y` axis is time in ns. The name given is random between 0 and max users at that time as to provide more accurate results
![image](GetBal().png) ![image](GetBal().png)
as the graph demonstrates, regardless of size GetBal remains consistent at around 39ns on my 3700x. as the graph demonstrates, regardless of size GetBal remains consistent at around 39ns on my 3700x single threaded.
## xxHash ## xxHash
## Base64 ## Base64
## Simdjson ## Simdjson
## Drogon webframework ## Drogon webframework
## Multi-threading support
## Intelligent saving ## Intelligent saving
### Saving on close ### Saving on close
when the program is interupted with CONTROL + C it will save before closing the webserver, **it will not however save during a crash**. when the program is interupted with CONTROL + C it will save before closing the webserver, **it will not however save during a crash**.