Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Add user agent override list support. (fixes #488) #777

Merged
merged 1 commit into from
Nov 20, 2018
Merged

Conversation

bluemarvin
Copy link
Contributor

No description provided.

Copy link
Contributor

@cvan cvan left a comment

Choose a reason for hiding this comment

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

this works well. many thanks for writing both this and the GV patch.

only question I have: how can we benchmark network load times before vs. after this UA Override code? how significant is the perf hit for both cache misses and hits?

Copy link
Contributor

@caseyyee caseyyee left a comment

Choose a reason for hiding this comment

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

It seems to all work for me (functional test only, will leave code up to others!)

@bluemarvin
Copy link
Contributor Author

only question I have: how can we benchmark network load times before vs. after this UA Override code? how significant is the perf hit for both cache misses and hits?

@cvan The only way I know is to get system time before and after the call to lookupOverride() to see how long each call takes. I'm not sure how to make it any faster though. We probably want to improve in GV how the overrides are set and get it out of the JS layer but that would require a significant refactor and isn't going to happen soon.

@cvan
Copy link
Contributor

cvan commented Nov 20, 2018

this looks good to go! excellent work 👍

@bluemarvin
Copy link
Contributor Author

@cvan, I think this is ready to land. Should I wait until you have time to update userAgentOverride.json? Or should that be a followup?

@cvan
Copy link
Contributor

cvan commented Nov 20, 2018

@cvan, I think this is ready to land. Should I wait until you have time to update userAgentOverride.json? Or should that be a followup?

to make which changes? you mean to add more exceptions?

@bluemarvin
Copy link
Contributor Author

@cvan, I think this is ready to land. Should I wait until you have time to update userAgentOverride.json? Or should that be a followup?

to make which changes? you mean to add more exceptions?

Yeah, I wasn't sure if this was the complete file or not.

@cvan
Copy link
Contributor

cvan commented Nov 20, 2018

yep, that's the complete file - thanks for checking

@bluemarvin bluemarvin merged commit 5488d24 into master Nov 20, 2018
@cvan cvan deleted the ua-override branch November 20, 2018 19:32
@caseyyee caseyyee mentioned this pull request Nov 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants