Redundant objects validation is visible for profiler #15
No reviewers
Labels
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Bitmessage/MiNode#15
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "lee.miller/MiNode:performance"
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?
Hi!
I believe there is no need to check
is_valid()
in theManager.clean_objects()
. A sole case when an object can become invalid in the current design, I can see, is changingshared.stream
, what is not supposed to be done in runtime. But.clean_objects()
is run every 1.5 min and involves PoW check, including double composition (Object.to_bytes()
).Such amount of computations become visible for a profiler (See the green rectangle in the attached py-spy output).
201acb9195
to70f059d9b1
Looks ok