Add PERFORMANCE_ANALYSIS.md: in-depth scalability analysis vs OpenJDK 21#112
Merged
pfirmstone merged 1 commit intotrunkfrom Apr 18, 2026
Merged
Conversation
Agent-Logs-Url: https://github.com/pfirmstone/DirtyChai/sessions/ccbfed79-4dc5-48a9-b6c8-eb7b3685e797 Co-authored-by: pfirmstone <11625778+pfirmstone@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
pfirmstone
April 18, 2026 08:26
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Documents the concrete scalability advantages of Dirty Chai's authorization subsystem over the legacy OpenJDK implementation, with particular focus on
ConcurrentPolicyFileandCombinerSecurityManager— two components that historically exposed severe lock contention under concurrent workloads.What's covered
ConcurrentPolicyFile— lock-freeimplies()via a singlevolatilearray read; no per-domain synchronized cache; no DNS calls duringCodeSourcecomparison; bitwise case conversion in URI normalization;PermissionComparatoravoids I/O-triggeringPermission.hashCode()/equals()CombinerSecurityManager— two independent non-blocking caches (checked: 20s TTL,contextCache: 60s TTL, both backed byConcurrentHashMap/ConcurrentSkipListSet); parallel domain checks viaVirtualThreadPerTaskExecutorfor stacks ≥4 domains (converts serial SocketPermission waits to parallel);ScopedValueoverThreadLocalfor recursion trackingAccessControlContextinterning — globalConcurrentSkipListMapcache with weak value refs; pre-computedhashCode;DomainIdentity/UriCodeSourceeliminates DNS from cache-key equality checksWeakHashMapPDcache, reverse-DNS inCodeSource.implies(), serial domain stack evaluation) to its Dirty Chai replacementLoadClassPermission,SerialObjectPermission,NativeAccessPermission) relative to the paths they protectCombinerSecurityManager's short-lived object patternDoPrivileged,GetContext,ProtectionDomainBench) to the subsystems they exercise