totpero / totpero/DeviceDetector.NET
Extremely slow performance on occassion
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 410
- Forks
- 73
- PR merge metrics
- No merged PRs in 30d
Description
Hi there.
We noticed 1 to 2 times per day that login lasts around 12s due to agent parsing. This is a graph in last 7 days in which you can see 9 peaks between 10 and 12s and and 5 peaks at around 2s:

Otherwise, its around 150ms. We have 10k cache enabled.
Any idea what could go wrong or how to troubleshoot this ? I really like the library but this things is a deal breaker. This is observed on our test web app environment which has very low number of logins per day (around 100).
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the login path in the test web app and profiling agent parsing when the delay occurs, comparing it with the usual 150ms path. Check whether the 10k cache changes the behavior. Done means identifying the cause of the intermittent 2–12 second parsing delay and documenting a verified fix or mitigation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- backend, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100