[comp.lang.clos] PCL-specific questions about precompilation, FIND-METHOD

tim@cstr.ed.ac.uk (Tim Bradshaw) (06/19/91)

I'm using may day rev 4b PCL on Allegro CL 3.1.

I am rather confused about the use or not of the
PRECOMPILE-RANDOM-CODE-SEGMENTS stuff.  I want to stop or reduce the
calling of the compiler the first time methods are dispatched which
defaultly goes on and it seems that this is the way to do it.  But the
documentation is obscure (and I haven't looked at the code in detail).

What does it mean by `<your-system-name>' -- is this related to the
defsys stuff?  Does it mean I have to use the PCL defsys?  

What does it mean by `run your system for a while'?  Is it enough to
make sure that all or most of the methods have been dispatched?

FIND-METHOD: has anyone implemented this for may day?

Thanks

--tim
Tim Bradshaw: tim@cstr.ed.ac.uk Internet: tim%ed.cstr@nsfnet-relay.ac.uk 
UUCP: ...!uunet!mcvax!ukc!cstr!tim

gregor@parc.xerox.com (Gregor Kiczales) (06/20/91)

In article <TIM.91Jun19173413@kahlo.cstr.ed.ac.uk> tim@cstr.ed.ac.uk (Tim Bradshaw) writes:

   I'm using may day rev 4b PCL on Allegro CL 3.1.

   I am rather confused about the use or not of the
   PRECOMPILE-RANDOM-CODE-SEGMENTS stuff.  I want to stop or reduce the
   calling of the compiler the first time methods are dispatched which
   defaultly goes on and it seems that this is the way to do it.  But the
   documentation is obscure (and I haven't looked at the code in detail).

   What does it mean by `<your-system-name>' -- is this related to the
   defsys stuff?  Does it mean I have to use the PCL defsys?  

This just needs to be a symbol which will distinguish this particular
call to PRECOMPILE... from others.  In practice, you can put anything
you want there.  Like `FOO'.

   What does it mean by `run your system for a while'?  Is it enough to
   make sure that all or most of the methods have been dispatched?

Yes.  That is, whatever calls to the compiler that have happened at the
time PRECOMPILE.. is compiled are what will be saved.