Closed cebe closed 3 years ago
I have a feeling this lack of caching is the biggest performance burden when reading API files. As an experiment, I ran Speccy's resolve command over my API file first (which took ~1 sec). Using the resolved output from Speccy dropped the time of Reader::readFromYamlFile()
down from 24 seconds to 10 seconds, which is fairly significant.
To avoid multiple requests to the same file, loaded files can be cached in current context.