Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RF/OPT: delay import of requests until used/needed in _etrequest #30

Merged
merged 1 commit into from
Feb 9, 2021

Conversation

yarikoptic
Copy link
Collaborator

It is a partial workaround for
#29
where ultimately requests is not a dependency at all, but rather built-in http
is used for that minimal amount of interaction needed.

This minimal change should shave off about 60ms from etelemetry import/use
runtime whenever no refresh _etrequest is needed to be sent

It is a partial workaround for
sensein#29
where ultimately requests is not a dependency at all, but rather built-in http
is used for that minimal amount of interaction needed.

This minimal change should shave off about 60ms from etelemetry import/use
runtime whenever no refresh _etrequest is needed to be sent
@codecov
Copy link

codecov bot commented Jan 5, 2021

Codecov Report

Merging #30 (89d43cb) into master (e6e61d7) will increase coverage by 0.53%.
The diff coverage is 75.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #30      +/-   ##
==========================================
+ Coverage   81.15%   81.69%   +0.53%     
==========================================
  Files           3        3              
  Lines          69       71       +2     
==========================================
+ Hits           56       58       +2     
  Misses         13       13              
Flag Coverage Δ
unittests 81.69% <75.00%> (+0.53%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
etelemetry/client.py 80.95% <75.00%> (+0.62%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ca72400...82893a6. Read the comment docs.

@yarikoptic
Copy link
Collaborator Author

I guess it would be up to @satra to press the big green button now ;-)

@satra satra merged commit fc36b72 into sensein:master Feb 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants