You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DownloadStore::save(Download* d, int flags) could be optimized to not write unchanged resume data (by adding a new flag). Implement by storing the SHAs of the bencode data last written, adding very little memory overhead.
Reasons are less SSD wear and tear (a big session can have 100MiB, written every 20min by defaut), and UI freezes can happen if the file system blocks or is slow. Many loaded mostly idle items make this more prominent.
Note that uncertain_pieces.timestamp in *.libtorrent_resume changes every time.
The text was updated successfully, but these errors were encountered:
Another route could be to write a command that saves the session in chunks of size arg.0 (using the uncertain_pieces.timestamp to roll through loaded items), and change the save_session schedule to run way more often and use that new command.
DownloadStore::save(Download* d, int flags)
could be optimized to not write unchanged resume data (by adding a new flag). Implement by storing the SHAs of the bencode data last written, adding very little memory overhead.Reasons are less SSD wear and tear (a big session can have 100MiB, written every 20min by defaut), and UI freezes can happen if the file system blocks or is slow. Many loaded mostly idle items make this more prominent.
Note that
uncertain_pieces.timestamp
in*.libtorrent_resume
changes every time.The text was updated successfully, but these errors were encountered: