From 6e6d722f9fb24ac319ac28b7dc0d060797a231a3 Mon Sep 17 00:00:00 2001 From: EntireTwix Date: Fri, 23 Dec 2022 19:05:26 -0800 Subject: [PATCH] :memo: 157 bytes -> 139 --- docs/connected_services/existing_services.md | 2 +- docs/features/user_side.md | 2 +- main.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/connected_services/existing_services.md b/docs/connected_services/existing_services.md index 261ad87..926a9c7 100644 --- a/docs/connected_services/existing_services.md +++ b/docs/connected_services/existing_services.md @@ -10,7 +10,7 @@ ## General | author | name | support | image | | :-------------------------------------- | ----------------------------------------------------------- | :----------------: | :-------------------------------------------------------------------------------------------------------------: | -| [Expand](https://github.com/Expand-sys) | [Web Frontend](https://github.com/Expand-sys/ccashfrontend) | ⚠ | ![image](https://user-images.githubusercontent.com/31377881/121337724-afe9fe80-c8d1-11eb-8851-23ec5e74cd26.png) | +| [Expand](https://github.com/Expand-sys) | [Web Frontend](https://github.com/Expand-sys/ccashfrontend) | :heavy_check_mark: | ![image](https://user-images.githubusercontent.com/31377881/121337724-afe9fe80-c8d1-11eb-8851-23ec5e74cd26.png) | | [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) | ⚠ | | diff --git a/docs/features/user_side.md b/docs/features/user_side.md index bfb9aa7..4a0a17f 100644 --- a/docs/features/user_side.md +++ b/docs/features/user_side.md @@ -7,7 +7,7 @@ Capable of processing thousands of requests per second, with little slow down as user size grows to the millions. #### Lightweight -* 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 %. * Small save files at typically a couple kb, easily shareable. ## Accessibility diff --git a/main.cpp b/main.cpp index 4e0fc31..8d0aa2a 100644 --- a/main.cpp +++ b/main.cpp @@ -74,7 +74,7 @@ int main(int argc, char **argv) size_t num_of_logs = Bank::NumOfLogs(); size_t num_of_users = Bank::NumOfUsers(); 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" << std::endl; //flushing before EventLoop