restful-api-description-language / RADL

RADL: A description language and tooling for hypermedia-driven RESTful APIs
Apache License 2.0
23 stars 5 forks source link

radl validation tool has poor performance #53

Closed gentlewind closed 8 years ago

gentlewind commented 8 years ago

I have a big RADL file with around 10k lines. The validation tool runs very slow. My machine resource is as follows:

MacBook Pro 
CPU 2.2 GHz Intel Core i7
Memory 16 GB 1600 MHz DDR3

Here is the test result of the validation result.

-> Assembled radl file 'test.radl.out', taken 0.928 seconds.
-> Completed validation using 'RelaxNgValidator', taken 0.107 seconds.
-> Completed validation using 'LintValidator', taken 85.215 seconds.
-> Completed validation using 'RelaxNgValidator,LintValidator', taken 85.526 seconds.
gentlewind commented 8 years ago

Fixed in https://github.com/restful-api-description-language/RADL/releases/tag/v2.0.1.

Updated result with the fix.

-> Assembled radl file 'test.radl.out', taken 0.844 seconds.
-> Completed validation using 'RelaxNgValidator', taken 0.122 seconds.
-> Completed validation using 'LintValidator', taken 4.053 seconds.
-> Completed validation using 'RelaxNgValidator,LintValidator', taken 4.389 seconds.