Load only subset of UserAgent data? #1554
-
For my case, I know for sure that the requests to my application will only come from desktop browsers and only a handful of browser types as these are the only ones allowed by our enterprise organisation. Is there anyway to instruct YAUAA to only load specific YAML files corresponding to these classes of devices in order to be more memory efficient? For example, might I somehow tell YAUAA to only be prepared to parse Google Chrome user agent strings from Linux, MacOS and Windows? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
No that feature is not there out of the box. There are so many edge cases that pulling the rulesets apart into what you describe would be really hard. The tricky thing is even for just Chrome the patterns have changed over time. So depending on the version things will be structured differently and at some point you can no longer conclude the "Windows 10" marker actually means it was running Windows 10. You can easily tell Yauaa you are only interested in specified fields, that will automatically drop rules that are not needed to achieve these fields (i.e. some speedup and memory footprint reduction). If you really want to go bare minimum you can start Yauaa without loading the default ruleset and feed it you own rules. Building these rules is very hard.
|
Beta Was this translation helpful? Give feedback.
No that feature is not there out of the box.
There are so many edge cases that pulling the rulesets apart into what you describe would be really hard. The tricky thing is even for just Chrome the patterns have changed over time. So depending on the version things will be structured differently and at some point you can no longer conclude the "Windows 10" marker actually means it was running Windows 10.
You can easily tell Yauaa you are only interested in specified fields, that will automatically drop rules that are not needed to achieve these fields (i.e. some speedup and memory footprint reduction).
If you really want to go bare minimum you can start Yauaa without loading the default rul…