-
Notifications
You must be signed in to change notification settings - Fork 301
Closed
Labels
type:BugSomething isn't workingSomething isn't working
Description
In our current implementation, every call to generate will trigger compilation, meaning generate()
is quite slow.
There are actually a few reasons for this.
- Our sampler objects are regenerated each call
generate()
. - Inside the sampler object,
sample()
is explicitly recompiled each call. - The
sample
object has python objects passed to it (a python function), meaning it will always retrace.
We need to make sure that subsequent calls to generate()
with the same settings do not trigger extra compilation.
Metadata
Metadata
Assignees
Labels
type:BugSomething isn't workingSomething isn't working