Repository navigation
Replies: 5 comments 6 replies
|
I wrote a test app today to test YAUAA vs UA-Parser today. In doing so I discovered that UA-Parser has a cached version of their parser and they did a new release 4 days ago. My test app timed the parser init; then it timed parsing the 56 most common user agents; then it timed parsing those user agents again 10,000 times. Here are the results in milliseconds: YAUAA init took: 1700 YAUAA uncached init took: 1693 UACachingParser init took: 210 UAParser init took: 224 |
|
UA parser had a release this week. The project isn't very active but it isn't dead either. I think we should switch to their caching parser and keep an eye on the project. |
|
@mposolda @douglaspalmer my major concern is about the level of maintenance of the project when it comes to releases and fixing CVEs. They got a new release this week, it appears that a single person is responsible for it, which is risky. Even if we contribute with bug fixes or updating dependencies, we still depend on a single maintainer to release a new version. A concrete example of what I say is the issue created on Oct, 2022 - ua-parser/uap-java#74 |
|
+1 to stick with ua parser. I assume there's also not the big memory penalty with ua parser either? End of the day we could even fork the java side of ua parser as that's pretty small and simple. Main part is in the regex, which has very low likelihood of having any cves |
|
I'm totally cool with you making the choice to stay with the analyzer you have right now.
I had a quick look at the ua-parser code how they achieved this and the reason for this is quite simple:
I also think that some of the testvalues (for both) are a bit skewed because of a |
Uh oh!
There was an error while loading. Please reload this page.
Right now, we use UA parser as a library for "device detection". For example Keycloak account console uses this to detect what was the device used to login the particular browser session. It uses mostly the
User-AgentHTTP header sent by the browser and tries to detect the device based on it.UA parser is 3d party library, but it does not seem to be maintained. So we're looking for an alternative to it. Right now, we have prototype PR [1], which replaces UA parser with YAUAA [2]. Does anyone have any experience with YAUAA? Or suggestions to other alternatives?
[1] https://github.com/keycloak/keycloak/pull/16876/files
[2] https://yauaa.basjes.nl/
All reactions