Python Upload, optimize verifyUpload
Posted: Tue Jan 15, 2019 10:13 pm
Hi, All,
I have a Python Upload script that I recently converted to do, essentially, in-place upload instead of a standard upload copying the image file. But, that change did not result in a significant speed up of my uploads. A lot of a my time seems to be in the "verifyUpload" process.
where that last call is a wrapper around cb.getResponse(). Given that this upload is effectively "in-place", can I safely skip this step in some way? Or, can I otherwise improve it's performance for my case?
Thanks for any advice,
Michael
I have a Python Upload script that I recently converted to do, essentially, in-place upload instead of a standard upload copying the image file. But, that change did not result in a significant speed up of my uploads. A lot of a my time seems to be in the "verifyUpload" process.
- Code: Select all
handle = proc.verifyUpload(hashes)
cb = CmdCallbackI(self.connection.c, handle)
rsp = self.assert_passes(cb)
where that last call is a wrapper around cb.getResponse(). Given that this upload is effectively "in-place", can I safely skip this step in some way? Or, can I otherwise improve it's performance for my case?
Thanks for any advice,
Michael