You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.
raml-parser-2 is rather slow.
Generating Java code from a RAML 1.0 spec of ~6700 lines with Ramler, which is based on this parser, takes about 7500 ms.
I tried to identify the bottlenecks using the jvisualvm sampler, and I found the following hotspots:
Class.forName()
inPackageModelBinding
Class.getMethod()
inModelProxyBuilder.SimpleProxy.findMatchingMethod()
ArrayList
creation inBaseNode.findDescendantsWith()
BaseNode.findDescendantsWith()
with the same argumentAfter optimizing these hotspots in a local build, my code generator only takes 1500 ms for the same input.
I'll submit a pull request with my changes.
Aha! Link: https://mulesoft-roadmap.aha.io/features/APIRAML-42
The text was updated successfully, but these errors were encountered: