#40_Improve_Preformance #41

Merged
silver merged 19 commits from #40_Improve_Preformance into main 2025-07-21 01:06:28 +00:00
Owner

While not exactly what was planned (18349f7bba/examples/e13_parallel_loops/src/main.rs (L48)) in #40 the end result is the same.
The scripts now wait for the cache to be populated before running.
Additionally some major changes to common/set_roles where some isseus with setting committee roles was not working as planned (trying to remove teh committee role from folks who did not have it)

Now the scripts run mostly under 10-15s each, allowing for greater ability to run them often withou incurring a time cost

Closes #40

While not exactly what was planned (https://github.com/serenity-rs/serenity/blob/18349f7bba43acad4261103eb38fe01d93f382df/examples/e13_parallel_loops/src/main.rs#L48) in #40 the end result is the same. The scripts now wait for the cache to be populated before running. Additionally some major changes to ``common/set_roles`` where some isseus with setting committee roles was not working as planned (trying to remove teh committee role from folks who did not have it) Now the scripts run mostly under 10-15s each, allowing for greater ability to run them often withou incurring a time cost Closes #40
silver added 18 commits 2025-07-20 23:55:57 +00:00
That should always be triggered separately.
This was a holdover from a  time when updating teh users was expensive (timewise)
*was executing before teh cache was built (``cache_ready`` is only when teh cache has been init, not when it is populated)
clippy: changes from nightly clippy
All checks were successful
/ check_lfs (push) Successful in 16s
/ check_lfs (pull_request) Successful in 12s
d0726169ee
all of this is embeding teh var into teh format macro
silver added 1 commit 2025-07-21 00:00:02 +00:00
ci: improve the pipeline to test for the full suite
Some checks failed
/ check_lfs (push) Has started running
/ check_lfs (pull_request) Successful in 12s
/ lint_fmt (pull_request) Failing after 16s
/ lint_clippy (pull_request) Failing after 13s
/ build (pull_request) Has been skipped
5feeb89bfd
silver added 1 commit 2025-07-21 00:11:10 +00:00
ci: dont pull in the lfs for teh PR pipeline build
Some checks failed
/ check_lfs (push) Successful in 11s
/ check_lfs (pull_request) Successful in 10s
/ lint_fmt (pull_request) Failing after 52s
/ lint_clippy (pull_request) Failing after 50s
/ build (pull_request) Has been skipped
d82fcf4d37
silver added 1 commit 2025-07-21 00:17:32 +00:00
ci: checkout without LFS
Some checks failed
/ check_lfs (push) Successful in 8s
/ check_lfs (pull_request) Successful in 9s
/ lint_fmt (pull_request) Failing after 51s
/ lint_clippy (pull_request) Failing after 48s
/ build (pull_request) Has been skipped
65dd9a9d1a
Author
Owner

Preformance before

Committee taking 3 min

Jul 20 21:15:16 kitt systemd[1]: Starting Service for Skynet Discord Bot update_committee...
Jul 20 21:15:17 kitt update_committee[884942]: Skynet is connected!
Jul 20 21:15:17 kitt update_committee[884942]: Cache built successfully!
Jul 20 21:18:08 kitt systemd[1]: skynet_discord_bot-update_committee.service: Deactivated successfully.
...
Jul 20 22:15:16 kitt systemd[1]: Starting Service for Skynet Discord Bot update_committee...
Jul 20 22:15:17 kitt update_committee[886024]: Skynet is connected!
Jul 20 22:15:17 kitt update_committee[886024]: Cache built successfully!
Jul 20 22:18:08 kitt systemd[1]: skynet_discord_bot-update_committee.service: Deactivated successfully.
...
Jul 20 23:15:11 kitt systemd[1]: Starting Service for Skynet Discord Bot update_committee...
Jul 20 23:15:11 kitt update_committee[887094]: Skynet is connected!
Jul 20 23:15:11 kitt update_committee[887094]: Cache built successfully!
Jul 20 23:18:02 kitt systemd[1]: skynet_discord_bot-update_committee.service: Deactivated successfully.

Users taking a few sec anyways before these changes, seems it was jsut lucky with the cache being filled

Jul 21 00:05:27 kitt systemd[1]: Starting Service for Skynet Discord Bot update_users...
Jul 21 00:05:28 kitt update_users[888074]: Skynet is connected!
Jul 21 00:05:28 kitt update_users[888074]: Cache built successfully!
Jul 21 00:05:28 kitt update_users[888074]: 631559054862581800 Changes: New: +0, Current: +0/-0
Jul 21 00:05:29 kitt update_users[888074]: 689189992417067052 Changes: New: +0, Current: +0/-0
Jul 21 00:05:29 kitt update_users[888074]: 768921501138681869 Changes: New: +0, Current: +0/-0
Jul 21 00:05:30 kitt update_users[888074]: 1156591731698045040 Changes: New: +0, Current: +0/-0
Jul 21 00:05:30 kitt update_users[888074]: 1175193858766807100 Changes: New: +0, Current: +0/-0
Jul 21 00:05:30 kitt systemd[1]: skynet_discord_bot-update_users.service: Deactivated successfully.

Preformance before Committee taking 3 min ``` Jul 20 21:15:16 kitt systemd[1]: Starting Service for Skynet Discord Bot update_committee... Jul 20 21:15:17 kitt update_committee[884942]: Skynet is connected! Jul 20 21:15:17 kitt update_committee[884942]: Cache built successfully! Jul 20 21:18:08 kitt systemd[1]: skynet_discord_bot-update_committee.service: Deactivated successfully. ... Jul 20 22:15:16 kitt systemd[1]: Starting Service for Skynet Discord Bot update_committee... Jul 20 22:15:17 kitt update_committee[886024]: Skynet is connected! Jul 20 22:15:17 kitt update_committee[886024]: Cache built successfully! Jul 20 22:18:08 kitt systemd[1]: skynet_discord_bot-update_committee.service: Deactivated successfully. ... Jul 20 23:15:11 kitt systemd[1]: Starting Service for Skynet Discord Bot update_committee... Jul 20 23:15:11 kitt update_committee[887094]: Skynet is connected! Jul 20 23:15:11 kitt update_committee[887094]: Cache built successfully! Jul 20 23:18:02 kitt systemd[1]: skynet_discord_bot-update_committee.service: Deactivated successfully. ``` Users taking a few sec anyways before these changes, seems it was jsut lucky with the cache being filled ``` Jul 21 00:05:27 kitt systemd[1]: Starting Service for Skynet Discord Bot update_users... Jul 21 00:05:28 kitt update_users[888074]: Skynet is connected! Jul 21 00:05:28 kitt update_users[888074]: Cache built successfully! Jul 21 00:05:28 kitt update_users[888074]: 631559054862581800 Changes: New: +0, Current: +0/-0 Jul 21 00:05:29 kitt update_users[888074]: 689189992417067052 Changes: New: +0, Current: +0/-0 Jul 21 00:05:29 kitt update_users[888074]: 768921501138681869 Changes: New: +0, Current: +0/-0 Jul 21 00:05:30 kitt update_users[888074]: 1156591731698045040 Changes: New: +0, Current: +0/-0 Jul 21 00:05:30 kitt update_users[888074]: 1175193858766807100 Changes: New: +0, Current: +0/-0 Jul 21 00:05:30 kitt systemd[1]: skynet_discord_bot-update_users.service: Deactivated successfully. ```
silver added 1 commit 2025-07-21 00:26:53 +00:00
ci: see if using the ref directly will help
Some checks failed
/ check_lfs (push) Successful in 6s
/ check_lfs (pull_request) Successful in 6s
/ lint_fmt (pull_request) Failing after 8s
/ lint_clippy (pull_request) Failing after 7s
/ build (pull_request) Has been skipped
afab2bed1c
silver added 1 commit 2025-07-21 00:32:12 +00:00
ci: test a slight modification
Some checks failed
/ check_lfs (push) Successful in 8s
/ check_lfs (pull_request) Successful in 7s
/ lint_fmt (pull_request) Successful in 51s
/ lint_clippy (pull_request) Failing after 10s
/ build (pull_request) Has been skipped
629db239e8
silver added 1 commit 2025-07-21 00:45:45 +00:00
ci: see if new get ldfs script works
Some checks failed
/ check_lfs (push) Successful in 8s
/ check_lfs (pull_request) Successful in 8s
/ lint_fmt (pull_request) Failing after 28s
/ lint_clippy (pull_request) Failing after 27s
/ build (pull_request) Has been skipped
233fc3008e
silver added 1 commit 2025-07-21 00:54:18 +00:00
ci: test using teh new v8
All checks were successful
/ check_lfs (push) Successful in 7s
/ check_lfs (pull_request) Successful in 9s
/ lint_fmt (pull_request) Successful in 59s
/ lint_clippy (pull_request) Successful in 1m43s
/ build (pull_request) Successful in 1m44s
13ee1643c1
silver force-pushed #40_Improve_Preformance from 13ee1643c1 to 854e946a8f 2025-07-21 01:00:22 +00:00 Compare
silver merged commit 18fd45d39b into main 2025-07-21 01:06:27 +00:00
Author
Owner

Here is committee after, quite a drastic improvement

ul 21 03:20:23 kitt systemd[1]: Starting Service for Skynet Discord Bot update_committee...
Jul 21 03:20:24 kitt update_committee[902295]: Cache loaded
Jul 21 03:20:25 kitt update_committee[902295]: Cache built successfully!
Jul 21 03:22:05 kitt systemd[1]: skynet_discord_bot-update_committee.service: Deactivated successfully.
Jul 21 03:22:05 kitt systemd[1]: Finished Service for Skynet Discord Bot update_committee.
...
Jul 21 03:22:31 kitt systemd[1]: Starting Service for Skynet Discord Bot update_committee...
Jul 21 03:22:31 kitt update_committee[902338]: Cache loaded
Jul 21 03:22:32 kitt update_committee[902338]: Cache built successfully!
Jul 21 03:22:50 kitt systemd[1]: skynet_discord_bot-update_committee.service: Deactivated successfully.
Jul 21 03:22:50 kitt systemd[1]: Finished Service for Skynet Discord Bot update_committee.
...

Here is committee after, quite a drastic improvement ``` ul 21 03:20:23 kitt systemd[1]: Starting Service for Skynet Discord Bot update_committee... Jul 21 03:20:24 kitt update_committee[902295]: Cache loaded Jul 21 03:20:25 kitt update_committee[902295]: Cache built successfully! Jul 21 03:22:05 kitt systemd[1]: skynet_discord_bot-update_committee.service: Deactivated successfully. Jul 21 03:22:05 kitt systemd[1]: Finished Service for Skynet Discord Bot update_committee. ... Jul 21 03:22:31 kitt systemd[1]: Starting Service for Skynet Discord Bot update_committee... Jul 21 03:22:31 kitt update_committee[902338]: Cache loaded Jul 21 03:22:32 kitt update_committee[902338]: Cache built successfully! Jul 21 03:22:50 kitt systemd[1]: skynet_discord_bot-update_committee.service: Deactivated successfully. Jul 21 03:22:50 kitt systemd[1]: Finished Service for Skynet Discord Bot update_committee. ... ```
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Skynet/discord-bot#41
No description provided.