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

implementation of multi threading + switch to requests lib for download #47

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

tdesveaux
Copy link

No description provided.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.16%) to 82.83% when pulling 0787467 on Babawah:perf into 1d45063 on makinacorpus:master.

@leplatrem
Copy link
Collaborator

Thanks for contributing this!

I confirm that tests pass on TravisCI. Coverallls is a false negative :/

Personnally I cannot spend time on a deep analysis of your code. But I know that @PeterSprague and @gutard are interested since they opened issues on this matter:
#46
GeotrekCE/Geotrek-admin#1444

Thanks again!

@@ -211,6 +238,9 @@ def __init__(self, url, layers, headers=None, tilesize=None, **kwargs):
if parse_version(self.wmsParams['version']) >= parse_version('1.3'):
projectionKey = 'crs'
self.wmsParams[projectionKey] = GoogleProjection.NAME
self.lock = threading.Lock()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since lock is private stuff, it's better if prefixed with underscore

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed.
I'm having a bit of trouble to keep track of what is private and what is public as I haven't done python for quite a time and have done mostly c++/c# where it is clearly defined which are which.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.73%) to 83.72% when pulling 9c36971 on Babawah:perf into 1d45063 on makinacorpus:master.

@leplatrem
Copy link
Collaborator

@gutard do you have feedback on this PR ? I scrolled a bit and it looks good!

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