Repository navigation
perf(json): cache property descriptors in SimplePropertyDescriptor - #17774
rajat315315 wants to merge 4 commits into
Conversation
PR Summary by QodoPerf(json): cache SimplePropertyDescriptor lookups per target class
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo
Context used✅ Tickets:
🎫 Instance ChroneDriver Error: ConnectFailure 🎫 2.48 doesn't trigger javascript in link's href on click()✅ Compliance rules (platform):
18 rules 1.
|
|
Code review by qodo was updated up to the latest commit 97b9c8f |
|
Code review by qodo was updated up to the latest commit 539ff5c |
|
Code review by qodo was updated up to the latest commit 0450324 |
|
Great idea, and thanks for your work on it, but this is actually a duplicate of what Simon has already done in: #17750 |
💥 What does this PR do?
This PR introduces a static
ConcurrentMapcache insideSimplePropertyDescriptorto cache the resolved properties of target classes.🔧 Implementation Notes
Class.getMethods()is called on every serialization/coercion run, which triggers JVM-level array cloning and metadata lookup repeatedly. Storing the resolved descriptors globally avoids this reflection lookup entirely.Benchmark Results (200k iterations):
No functional behavior is changed.
🔗 Related Issues
Resolves #17773
🤖 AI assistance
💡 Additional Considerations
🔄 Types of changes