Summary
Session saves are now handled in a separate thread.
When a session save is triggered, all downloads are added to a queue that builds the session data 16 at a time in parallel. Those are then queued to be written and sync'ed to disk 16 at a time. During shutdown, 64 downloads in parallel are processed.
Only the process of building the session data blocks the main thread.
Magnet Link Handling
Downloading of magnet links now save the metadata file to session directory by default.
This can be overridden by 'magnet.path.set'.
When deleting the download, the metadata file is also deleted if it resides in the session directory.
New Timestamp Helper Commands
Added '.or_zero' and '.elapsed' commands for 'd.timestamp.started' and 'd.timestamp.finished'.
Development Funding
Current development relies on donations, and as such is highly appreciated.
Donations make futher development possible, and as such are highly appreciated:
- Paypal
- Patreon
- SubscribeStar
- Bitcoin: 1MpmXm5AHtdBoDaLZstJw8nupJJaeKu8V8
- Ethereum: 0x9AB1e3C3d8a875e870f161b3e9287Db0E6DAfF78
- Litecoin: LdyaVR67LBnTf6mAT4QJnjSG2Zk67qxmfQ
- Cardano: addr1qytaslmqmk6dspltw06sp0zf83dh09u79j49ceh5y26zdcccgq4ph7nmx6kgmzeldauj43254ey97f3x4xw49d86aguqwfhlte
What's Changed
Features
- Added timestamp helper commands by @rakshasa
- Use separate thread for saving session data by @rakshasa
- Run multiple session save requests in parallel by @rakshasa
- Changed magnet metadata handling and added 'magnet.path.set' by @rakshasa
Optimizations
- Use map rather than vector for Poll tables by @rakshasa