BIG performance improvement, for #random_example
BIG performance improvement, for #random_example

Previously, for capture groups and "Or" groups, the #random_example
method was basically calling #examples under the hood.
This meant that for a "complex" pattern, the system simple froze! E.g.

/\w{1000}/.random_example # worked fine
/(\w{1000})/.random_example # tries to store 63**1000 examples in
memory; not fine!!

This is now fixed. ALL regexes can have a random example generated "quickly".

tom-lord/regexp-examples