[Openmcl-devel] (require :objc-support) takes 12s

Leo Liu sdl.web at gmail.com
Wed Apr 30 17:14:42 UTC 2014


On 2014-04-29 07:13 -0500, Paul Krueger wrote:
> Check out the section on "Saving Applications" in the CCL
> documentation. After you do the require you can save off the
> application so that the require is not needed when you start up that
> saved app.
>
[snipped 16 lines]

On 2014-04-29 10:08 -0600, Gary Byers wrote:
> You could comment out the code in those files that actually does anything
> when it's loaded (and the parts that depend on those things having happened
> earlier in the loading sequence.)   I find that it's almost always faster
> to load code that doesn't do anything than it is to load code that does
> a lot of expensive things when it's loaded!
>
> Of course, doing those expensive things - initializing the ObjC bridge,
> integrating information about declared ObjC classes and methods with what's
> actually found by introspecting the ObjC environment and integrating the
> results into CLOS - is pretty much the point of loading those files.  (There's
> always a catch!)
>
> Could those expensive things be made a little less expensive ?  Probably.
> Significantly less expensive ?  Probably not.
>
> Paul's suggestion - saving an image in which that work has been done -
> should work, as long as something ensures that the saved image does
> some smaller amount of work when it starts up.  I -think- that
> requiring
> OBJC-SUPPORT does this, but I don't remember and rarely use Macs these
> days, so I'm not sure.

Thanks for the info.

Leo


More information about the Openmcl-devel mailing list