Closed xgui3783 closed 1 year ago
failed tests does not seem to be caused by this PR, but rather a more strict parsing of gifti file. see trace https://github.com/HumanBrainProject/neuroglancer-scripts/actions/runs/5541279128/jobs/10114475201#step:6:54
I can fix the issue in this PR too, or would you prefer to fix it in a separate PR, and I can rebase/merge this PR?
Merging #33 (47fd3b1) into master (b7b5047) will increase coverage by
0.00%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## master #33 +/- ##
=======================================
Coverage 92.61% 92.61%
=======================================
Files 25 25
Lines 1489 1490 +1
Branches 219 219
=======================================
+ Hits 1379 1380 +1
Misses 63 63
Partials 47 47
Impacted Files | Coverage Δ | |
---|---|---|
src/neuroglancer_scripts/http_accessor.py | 100.00% <100.00%> (ø) |
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more
According to https://requests.readthedocs.io/en/latest/user/advanced/#session-objects , it appears that by using
requests.Session
, the underlying TCP connection will be reused, which should drastically improve repeated get requests to the same host.From the (admittedly) rough test script[1], we see promising improvement (execution time cut by ~50% in sync reads and ~30% in threaded reads) [2]
[1] rough script used for testing both sync and threaded operations, we used
time python <script_name>.py
and manually recorded the result[2] truncated result