ClojureScript

s/coll-of and s/every gen is very slow if :kind specified without :into

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: 1.10.238
  • Fix Version/s: None
  • Component/s: None
  • Labels:
  • Patch:
    Code
  • Approval:
    Accepted

Description

Port CLJ-2103.

Activity

Hide
Mike Fikes added a comment -

Before:

cljs.user=> (time (dorun (gen/sample (s/gen (s/coll-of int? :kind list?)) 1000)))
"Elapsed time: 18424.869714 msecs"

After:

cljs.user=> (time (dorun (gen/sample (s/gen (s/coll-of int? :kind list?)) 1000)))
"Elapsed time: 943.532827 msecs"
Show
Mike Fikes added a comment - Before:
cljs.user=> (time (dorun (gen/sample (s/gen (s/coll-of int? :kind list?)) 1000)))
"Elapsed time: 18424.869714 msecs"
After:
cljs.user=> (time (dorun (gen/sample (s/gen (s/coll-of int? :kind list?)) 1000)))
"Elapsed time: 943.532827 msecs"

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: