Load time trimming

new topic     » topic index » view thread      » older message » newer message

Two questions for Euphoria gurus:

1)     Suppose you are writing an app. that involves using pieces of many
different include files, but *only* pieces of those include files.  That is,
one function out of this one, another from that one, etc.
     Do you think/know if the load time could be reduced by making alternate
copies of those include files which contained only the relevent functions
(and whatever support functions they in turn need)?  Or does Euphoria
already have some method built in to trim the fat?
     That last mentioned seems unlikely to me, since Euphoria has to load
the function before it can see if it is used or not (although I suppose it
might throw out unused code once it has it all in memory, that wouldn't help
load time any; it might even lengthen it).

     I realize that Euphoria loads pretty fast anyway, so this is really
just a concept question.


2)   Does anyone know of a way to emulate a case statement in Euphoria other
than an elsif chain?  The case statements I'm referring to are like Qbasic's
Select Case, or C's switch().
     Nothing wrong with elsif chains, I'm just curious if it can be done.


Craig

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu