Whoah. O_o Do you have some example data?
Also, I'd be interested to know what validator are you using. It looks like there are a lot of "$ref"s in there - it might be worth checking whether your validation library is pre-processing the schemas to resolve those references, or whether it's doing a lookup each time.
On Fri, Apr 19, 2013 at 8:14 PM, Jim Klo <jim...@sri.com> wrote:
[...]
>
> FWIW: I don't have any issue contributing to existing validators out there
> to cache ahead...
>
I do already cache, but of course there is a size limit. And here you
don't seem to be using $refs to external sources either. So, this is
simple JSON Pointer resolution from the root.
The fact that you say it takes 30 _seconds_ to validate one entry is
rather puzzling to me. Have you tried and forked the app locally and
run it on your machine?
--
You received this message because you are subscribed to the Google Groups "JSON Schema" group.
To unsubscribe from this group and stop receiving emails from it, send an email to json-schema...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
On Sat, Apr 20, 2013 at 1:54 AM, Jim Klo <jim...@sri.com> wrote:
[...]
>>
>> I do already cache, but of course there is a size limit. And here you
>> don't seem to be using $refs to external sources either. So, this is
>> simple JSON Pointer resolution from the root.
>>
>> The fact that you say it takes 30 _seconds_ to validate one entry is
>> rather puzzling to me. Have you tried and forked the app locally and
>> run it on your machine?
>>
> I was intentionally not trying to use external sources for that reason...
>
> And yes.. I forked and checked out locally and ran... mostly because I was
> developing without direct internet access...
>
That still does not explain the 30 seconds... My library is ordinarily
ultra fast. Care to share a schema and sample data?
--
We do do ref caching by default.
I'll take a look later at this.
Julian