mirror of
https://github.com/xcat2/confluent.git
synced 2025-01-14 03:37:49 +00:00
Jarrod Johnson
485c323608
Stage uploads in memory
The strategy of duping file descriptors is inadequate. The copies share identical offsets. Fix this by reading the file once into memory, and using BytesIO to fake a file. This is relatively memory intensive in theory, but in practice pyghmi library had been duping everything to memory anyway, so it is a wash for now.
…
…
Description
Languages
Python
80.4%
Shell
15.6%
C
3.6%
Perl
0.3%