[Openmcl-devel] (require :objc-support) takes 12s
Gary Byers
gb at clozure.com
Tue Apr 29 09:08:29 PDT 2014
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.
On Tue, 29 Apr 2014, Leo Liu wrote:
> Hi there,
>
> In a macbook from 2009 core 2 2G + 8GRAM with CCL 1.9, (require
> :objc-support) takes about 12s. Is there any way to speed this up? I
> check my CCL installation and there are no .DX64DSL files for lisp files
> included in CCL i.e. objc-bridge.
>
> Thanks,
> Leo
>
> _______________________________________________
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
> http://lists.clozure.com/mailman/listinfo/openmcl-devel
>
>
More information about the Openmcl-devel
mailing list