Put uploads into a separate thread #1415
No reviewers
Labels
No Label
bug
build
dependencies
developers
documentation
duplicate
enhancement
formatting
invalid
legal
mobile
obsolete
packaging
performance
protocol
question
refactoring
regression
security
test
translation
usability
wontfix
No Milestone
No project
No Assignees
1 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Bitmessage/PyBitmessage-2024-12-15#1415
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "writebuf_upload_fix"
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?
in a dedicated thread. Only the parsing is done in ReceiveQueue thread.
write buffer size to 2MB (may still grow slightly higher if too many big
objects are requested, but the absolute limit appears to be about 4.5MB in the
worst case scenario).
about 2MB per second per connection), but can be optimised later
I changed the checks to ignore import position errors in bitmessagemain.py, as I don't know how else to work around this. I can revert it once this is merged.
Testing ...
Log says it's uploading objects
Throttling seems to work
Seems to work as expected on multiple systems, memory usage way down
Looks good.
Why not
?
Leftover from old code, you're right, it can be rewritten for maybe a bit of performance increase.