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

Slightly faster location provider instance creation #12967

Merged
merged 1 commit into from May 24, 2018

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented May 23, 2018

Currently, on each tracking request it checks for each location provider whether each location provider is available which can put a bit of load on the filesystem etc. Instead we should check it only for the requested provider. Maybe we could even cache at some point whether a provider is available or not! Also ideally eventually we would be able to directly create an instance of the needed provider but that shouldn't improve performance crazy much.

Currently, on each tracking request it checks for each location provider whether each location provider is available which can put a bit of load on the filesystem etc. Instead we should check it only for the requested provider. Maybe we could even cache at some point whether a provider is available or not! Also ideally eventually we would be able to directly create an instance of the needed provider but that shouldn't improve performance crazy much.
@tsteur tsteur added c: Performance For when we could improve the performance / speed of Matomo. Needs Review PRs that need a code review labels May 23, 2018
@tsteur tsteur added this to the 3.5.1 milestone May 23, 2018
@diosmosis diosmosis merged commit 617de25 into 3.x-dev May 24, 2018
@diosmosis diosmosis deleted the fasterprovidercreation branch May 24, 2018 00:44
InfinityVoid pushed a commit to InfinityVoid/matomo that referenced this pull request Oct 11, 2018
Currently, on each tracking request it checks for each location provider whether each location provider is available which can put a bit of load on the filesystem etc. Instead we should check it only for the requested provider. Maybe we could even cache at some point whether a provider is available or not! Also ideally eventually we would be able to directly create an instance of the needed provider but that shouldn't improve performance crazy much.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Performance For when we could improve the performance / speed of Matomo. Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants