You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Move initailizing animals out of __init__ to global scope.
Having `__init__` read from the filesystem was causing problems with
static compiling.
Per the julia docs, intializing an array like this doesn't need to be in
__init__, the whole array can be serialized during precompilation:
> Constants involving most Julia objects that are not produced by ccall
> do not need to be placed in __init__: their definitions can be
> precompiled and loaded from the cached module image. This includes
> complicated heap-allocated objects like arrays. However, any routine
> that returns a raw pointer value must be called at runtime for
> precompilation to work (Ptr objects will turn into null pointers
> unless they are hidden inside an isbits object). This includes the
> return values of the Julia functions cfunction and pointer.
0 commit comments