Skip to content

Refactored TorrentSetPayload to include compact list optimization #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

SomniSom
Copy link

Refactored TorrentSetPayload to include compact list optimization added the compact function to remove consecutive duplicates from lists, enhancing performance and readability. This change is particularly beneficial for handling tracker lists.

  • Implemented the compact function to eliminate duplicate entries in the TrackerList.
  • Applied this improvement to ensure uniqueness of tracker announcements within the TorrentSetPayload.
  • Optimized conversion of seed idle time durations and tracker strings into JSON format, improving data consistency.

This update enhances code robustness against data duplication errors, contributing to increased reliability in the TransmissionRPC client implementation.

SomniSom added 2 commits May 16, 2025 14:15
…ded the `compact` function to remove consecutive duplicates from lists, enhancing performance and readability. This change is particularly beneficial for handling tracker lists.

- Implemented the `compact` function to eliminate duplicate entries in the `TrackerList`.
- Applied this improvement to ensure uniqueness of tracker announcements within the `TorrentSetPayload`.
- Optimized conversion of seed idle time durations and tracker strings into JSON format, improving data consistency.

This update enhances code robustness against data duplication errors, contributing to increased reliability in the TransmissionRPC client implementation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant