mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-16 16:12:14 +11:00
⚡ memory usage info
This commit is contained in:
parent
8c97d19330
commit
dd66144a3b
2 changed files with 3 additions and 3 deletions
|
|
@ -5,8 +5,7 @@
|
|||
as CCash is very lightweight it can run on practically any device but here are some tips:
|
||||
* single core machines should toggle `MULTI_THREADED` to `false`
|
||||
* if your server is sufficiently active as so that each save freqeuncy saving is highly likely then `CONSERVATIVE_DISK_SAVE` should be toggled to `false`
|
||||
* `MAX_LOG_SIZE` should be adjusted as it takes up the most memory usage/storage at about 173 bytes in memory and (size) in disk space per log. Setting to 0 will not even compile logs
|
||||
* with no users memory usage is 8.792517 Mb
|
||||
* `MAX_LOG_SIZE` should be adjusted as it takes up the most memory usage/storage of the ledger's features at ~202 bytes in memory and (size) in disk at default settings. Setting to 0 will not even compile logs
|
||||
|
||||
## Drogon Depedencies
|
||||
|
||||
|
|
|
|||
3
main.cpp
3
main.cpp
|
|
@ -58,8 +58,9 @@ int main(int argc, char **argv)
|
|||
|
||||
//Loading users from users.json
|
||||
bank.Load();
|
||||
size_t num_of_logs = bank.NumOfLogs();
|
||||
std::cout << "\n\nLoaded " << bank.NumOfUsers() << " Users"
|
||||
<< "\nLoaded " << bank.NumOfLogs() << " Logs"
|
||||
<< "\nLoaded " << num_of_logs << " Logs : " << (float)(num_of_logs * (90 + 80 + (max_name_size * 2))) / 1048576 << "Mb" //90:string representation(heap), sizeof(Transaction), max_name_size*2:filled to&from(heap)
|
||||
<< "\nLoaded " << bank.SumBal() << " CSH"
|
||||
<< std::endl; //flushing before EventLoop
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue