attah / harbour-seaprint

🐟🖨 Network printing for Sailfish OS
GNU General Public License v3.0
16 stars 20 forks source link

Change to (lib-)cURL as a http client #47

Closed attah closed 3 years ago

attah commented 3 years ago

For better performance (converting happening in lock-step with transferring/printing), and as an enabler for client-side copies (for severely memory-limited printers).

attah commented 3 years ago

POC done.

attah commented 3 years ago

Crap. QProcess can't write to QIODevice, it is an QIODevice even if it has some output redirect functionality as well. That probably means it won't throttle either if it works faster than the network connection. So just having cURL be a reader will probably have it eat quite a lot of ram.

Options: