adobe / adobe/jsonschema2md

Recursive proxy causing long processing time

Open
#234 0 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
724
Forks
150
Avg merge
18h 22m
Merged PRs (30d)
4

Description

Whenever access is made to the property of a schema that references another schema through "$ref", the Proxy creates another Proxy to resolve the property, however, even if the property has already been resolved, this process will continue to be done. Spending more processing time unnecessarily.

This applied to a set of complex schemas with many properties, can cause a very long processing time.

I suggest adding a check to prevent the creation of proxy over proxy.

Contributor guide

Open the contributing guide

Research direction

Trace the Proxy creation used when resolving properties through "$ref", starting with the path where an already-resolved property is accessed. Verify that repeated access does not create another Proxy, then exercise the behavior with a complex schema containing many referenced properties and confirm processing time improves.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
performance
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.