mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-16 16:12:14 +11:00
📝 157 bytes -> 139
This commit is contained in:
parent
70ac88e894
commit
705a746a3c
4 changed files with 4 additions and 4 deletions
|
|
@ -5,7 +5,7 @@
|
||||||
as CCash is very lightweight it can run on practically any device but here are some tips:
|
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`
|
* single core machines should toggle `MULTI_THREADED` to `false`
|
||||||
* if your server is sufficiently active, such that each time save frequency is met, changes having been made is highly likely then `CONSERVATIVE_DISK_SAVE` should be toggled to `false`
|
* if your server is sufficiently active, such that each time save frequency is met, changes having been made 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 of the ledger's features at 157 bytes in memory and 43 bytes in disk at default settings on the current version, so 6678 logs per MB of RAM. Setting to 0 will disable logs
|
* `MAX_LOG_SIZE` should be adjusted as it takes up the most memory usage/storage of the ledger's features at 139 bytes in memory and 43 bytes in disk at default settings on the current version, so 6678 logs per MB of RAM. Setting to 0 will disable logs
|
||||||
* with no users memory usage is ~8.47 MB
|
* with no users memory usage is ~8.47 MB
|
||||||
* saving frequency being set to 0 will disable frequency saving and only save on close
|
* saving frequency being set to 0 will disable frequency saving and only save on close
|
||||||
* make backups of your save files!
|
* make backups of your save files!
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
## General
|
## General
|
||||||
| author | name | support | image |
|
| author | name | support | image |
|
||||||
| :-------------------------------------- | ----------------------------------------------------------- | :----------------: | :-------------------------------------------------------------------------------------------------------------: |
|
| :-------------------------------------- | ----------------------------------------------------------- | :----------------: | :-------------------------------------------------------------------------------------------------------------: |
|
||||||
| [Expand](https://github.com/Expand-sys) | [Web Frontend](https://github.com/Expand-sys/ccashfrontend) | ⚠ |  |
|
| [Expand](https://github.com/Expand-sys) | [Web Frontend](https://github.com/Expand-sys/ccashfrontend) | :heavy_check_mark: |  |
|
||||||
| [Expand](https://github.com/Expand-sys) | [Discord Bot](https://github.com/Expand-sys/ccashbot) | :heavy_check_mark: | |
|
| [Expand](https://github.com/Expand-sys) | [Discord Bot](https://github.com/Expand-sys/ccashbot) | :heavy_check_mark: | |
|
||||||
| [ArcNyxx](https://github.com/ArcNyxx) | [CCash CLI](https://github.com/ArcNyxx/ccash_cmd) | ⚠ | |
|
| [ArcNyxx](https://github.com/ArcNyxx) | [CCash CLI](https://github.com/ArcNyxx/ccash_cmd) | ⚠ | |
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
Capable of processing thousands of requests per second, with little slow down as user size grows to the millions.
|
Capable of processing thousands of requests per second, with little slow down as user size grows to the millions.
|
||||||
#### Lightweight
|
#### Lightweight
|
||||||
<!-- specs -->
|
<!-- specs -->
|
||||||
* Low memory usage at 8 MB baseline, and 157 bytes per new log.
|
* Low memory usage at 8 MB baseline, and 139 bytes per new log.
|
||||||
* Extremely low CPU usage in the single digits of %.
|
* Extremely low CPU usage in the single digits of %.
|
||||||
* Small save files at typically a couple kb, easily shareable.
|
* Small save files at typically a couple kb, easily shareable.
|
||||||
## Accessibility
|
## Accessibility
|
||||||
|
|
|
||||||
2
main.cpp
2
main.cpp
|
|
@ -74,7 +74,7 @@ int main(int argc, char **argv)
|
||||||
size_t num_of_logs = Bank::NumOfLogs();
|
size_t num_of_logs = Bank::NumOfLogs();
|
||||||
size_t num_of_users = Bank::NumOfUsers();
|
size_t num_of_users = Bank::NumOfUsers();
|
||||||
std::cout << "\n\nLoaded " << num_of_users << " Users ~" << (float)(sizeof(User) * num_of_users) / 1048576 << "MB"
|
std::cout << "\n\nLoaded " << num_of_users << " Users ~" << (float)(sizeof(User) * num_of_users) / 1048576 << "MB"
|
||||||
<< "\nLoaded " << num_of_logs << " Logs ~" << (float)(num_of_logs * (93 + sizeof(Transaction) + max_name_size)) / 1048576 << "MB" //93:cached response per log(heap), sizeof(Transaction), max_name_size:counterparty(heap)
|
<< "\nLoaded " << num_of_logs << " Logs ~" << (float)(num_of_logs * (75 + sizeof(Transaction) + max_name_size)) / 1048576 << "MB" //75:cached response per log(heap), sizeof(Transaction), max_name_size:counterparty(heap)
|
||||||
<< "\nLoaded " << Bank::SumBal() << " C$H"
|
<< "\nLoaded " << Bank::SumBal() << " C$H"
|
||||||
<< std::endl; //flushing before EventLoop
|
<< std::endl; //flushing before EventLoop
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue