enum architecture requiring the use of cloning #2

Closed
opened 2025-02-21 00:24:43 +00:00 by devraza · 2 comments
Owner

Though I'm not exactly sure if it could be done better, the way the architecture has been implemented (#1) means that instead of using more efficient mutable references to update the application state, a new application state (or portions of it) is created every time a modification is required.

So, though the architecture simplifies the codebase, it's also less efficient, which I'd like to avoid if possible.

I've reversed the merge for now, but if this issue can be resolved I'll look into a relevant PR.

Though I'm not exactly sure if it could be done better, the way the architecture has been implemented (#1) means that instead of using more efficient mutable references to update the application state, a new application state (or portions of it) is created every time a modification is required. So, though the architecture simplifies the codebase, it's also less efficient, which I'd like to avoid if possible. I've reversed the merge for now, but if this issue can be resolved I'll look into a relevant PR.
Owner

damnit now i gotta learn how to fix all the mutability stuff

damnit now i gotta learn how to fix all the mutability stuff
devraza changed title from performance: enum architecture requiring the use of cloning to enum architecture requiring the use of cloning 2025-02-21 11:02:58 +00:00
devraza added the
performance
label 2025-02-21 11:03:04 +00:00
Author
Owner

Resolved with #3

Resolved with #3
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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: atiran/txtris#2
No description provided.