Review Memory Usage > Consider DB Implementation #63
Labels
No labels
Automated
Backlog
Post_Prototype_1.0
Bot_Code
Core
Bot_Code
Custom
CI/CD
Complexity
Advanced
Complexity
Basic
Complexity
Expert
Complexity
Intermediate
Kind/Breaking
Kind/Bug
Kind/Bug Fix
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Nix
Ownership
Collab
Ownership
Collab with Leads
Ownership
Individual Lead
Ownership
In-Review
Ownership
Needs Owner > May Delegate
Ownership
Workshop with Leads
Phase 1.0
Requirements > Drafting
Phase 1.0
Requirements > Researching
Phase 1.0
Requirements > Review & Planning
Phase 2.0
Design > Research & Analysis
Phase 3.0
Coding > Implementation
Phase 4.0
QA > Unit Testing & Design
Phase 5.0
Resolution > Completed
Phase 5.0
Resolution > Review for Completion
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: modulatingforce/forcebot_rs#63
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I'm finding it fascinating that with rust, having to explicitly define static objects with
Arc<RwLock<T>>
, I can almost feel the weight of it in memory as there are more instances that are created this way. Specifically, I can see that since I've started adopting a lot of these static elements, I can see Raw that these records are making the bot take more and more memory .Better may be to perhaps use a DB implementation & caching so the bot only stores in memory a subset of objects at a time . There could also be other optimizations to explore
For example, at the moment, I have
Arc<RwLock<RateLimiter>>
for each channel the bot is connected to , but theRateLimiter
for inactive or low activity channels would not really need that RateLimier sitting in memoryMight hold this off until core parts of the bot are coded - but going to keep the above in mind moving forward for new objects