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

Add Documentation #202

Merged
merged 3 commits into from
Mar 26, 2024
Merged

Add Documentation #202

merged 3 commits into from
Mar 26, 2024

Conversation

masklinn
Copy link
Contributor

No description provided.

This was linked to issues Mar 16, 2024
@masklinn masklinn force-pushed the usage-docs branch 6 times, most recently from 05f1e5d to 7873e3f Compare March 26, 2024 19:08
Trimmed the readme, and added a bit on re2.

Had to update a ton of docstrings to have a decent API doc.

Also removed a bunch of leftover references to parsers, and removed
the completely useless `Parse` bit from `ParseResult`,
`PartialParseResult`, and `DefaultedParseResult`, which further
contributed to the churn and every file in the project being touched,
as it required editing files without docstrings.

Fixes ua-parser#182
- belady is useful to get *some* sort of semi-realistic expectation of
  a cache, as the maximum hit rate is only somewhat realistic as cache
  sizes get close to the number of unique entries
- caches have been busting my balls and I'd assume the average user
  doesn't have the time and inclination to bother, so some guidance is
  useful
- as caching is generally a CPU/memory tradeoff, while ``hitrates``
  provides a cache overhead estimation giving users a better grasp of
  the implementation details and where the overhead comes from is
  useful
- plus I regularly re-wonder and re-research and re-discover the size
  complexity of various collections so this gives me the opportunity
  to actually write it down for once
@masklinn masklinn enabled auto-merge (rebase) March 26, 2024 19:15
@masklinn masklinn merged commit 63eda17 into ua-parser:master Mar 26, 2024
29 checks passed
@masklinn masklinn deleted the usage-docs branch March 26, 2024 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1.0 custom parser guide 1.0 advanced usage documentation
1 participant