transmissionrpc icon indicating copy to clipboard operation
transmissionrpc copied to clipboard

Refactored TorrentSetPayload to include compact list optimization

Open SomniSom opened this issue 7 months ago • 0 comments

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 avatar May 18 '25 06:05 SomniSom