A cached filter, rewrite or client snapshot no longer reads the wall clock on every query #224
Labels
No labels
agent
api-regen
agent
architect
agent
coder
agent
console-coder
agent
docs-writer
agent
mechanic
agent
protocol-coder
agent
storage-coder
area/api
area/ci
area/console
area/dhcp
area/dns
area/docs
area/packaging
area/process
area/storage
area/windows
kind
bug
kind
chore
kind
docs
kind
epic
kind
feature
kind
performance
kind
security
kind
test
priority
high
priority
low
priority
medium
resolution
duplicate
resolution
not-a-bug
resolution
wontfix
status
blocked
status
in-progress
status
needs-decision
status
needs-design
status
ready
theme
ad-samba-dns
theme
alternatives-benchmark
theme
console-toolchain
theme
later
theme
parity-devices
theme
parity-query
theme
post-release-fixes
theme
tracker-setup
theme
valkey
theme
windows-installer
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lantea-one/ninlil#224
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
RefreshingSnapshot<T>.GetAsynccallstimeProvider.GetUtcNow()on every read to check the TTL (src/dotnet/src/Ninlil.Dns.Server.Core/ClientIdentity/RefreshingSnapshot.cs:140). The filter and rewrite engines call it per query. In BP-12 these reads were 11.8 % of Full/Large throughput samples.What changes
src/dotnet/src/Ninlil.Dns.Server.Core/ClientIdentity/RefreshingSnapshot.cs: store the load moment as aTimeProvider.GetTimestamp()value and compare withGetElapsedTime. That is a monotonic counter read with noDateTimeOffsetbuild. KeepTimeProvidersoManualTimeProvidertests still drive it.Acceptance
RefreshingSnapshottests insrc/dotnet/tests/Ninlil.Dns.Server.Core.Testspass unchanged. A new test proves a stale entry still triggers a refresh when only the fake timestamp advances.PipelineLatencyandPipelineThroughput(--scale Large,--job default): before/after numbers in the PR, with no regression over 5 %.Ninlil.Dns.Server.Coreis a shared library, the whole solution passes (dotnet test Ninlil.slnx -p:NinlilSkipAngularBuild=true). Build has 0 warnings, csharpier is clean.Source
bp-design.md"Items measured, not changed, still open" item 3;bughunt-plan.md:543item (1).