-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Dynamic UA definitions #51
Comments
By dynamic definitions, do you mean something that pings "some-link.com/latest-uas.json" on startup or are you looking to put your own custom user agent lists in as a parameter? |
any method that does not require to deploy a new version of the application that consumes this library |
Thinking more about this, I don't think this is a necessary feature. User-agents rarely ever change and are very infrequently updated (just see how often I actually update the user agent list in this repo). Since we use pattern recognition, the only time the list is updated is to catch rare edge cases or add new browsers. Existing browsers will indefinitely be supported even if their versions are bumped up. |
As stated in the initial post, software remains in production for a long time and releasing a new version is not always a straight forward process.
this is the reason why the definitions should be dynamic. For my use case I only need a method to provide a newer definitions file without recompiling and deploying a new version of my application. |
I understand the usecase (especially in something like IOT contexts). Does your conditions allow you to at least restart the software? In this case, maybe an API like |
Application can be restarted. The updated definitions should be provided by the app that consumes this library |
usually software remains in production for ages and no one would bothers to update the binaries just to have a fresh UA parser
any thoughts on how to make a "high-performance zero-allocation Go library designed to parse browser name and version, operating system, and device type information from user-agent strings with sub-microsecond parsing times." with dynamic definitions ?
a "high-performance" algorithm with dynamic definitions could do the trick :D
The text was updated successfully, but these errors were encountered: