Re: exporting imports to reduce exe size?



On Tue, 12 Apr 2005 12:14:38 -0400, Chris Cioffi
<evenprimes@xxxxxxxxx> wrote:

>My first thought is what if the function you are using uses other
>functions(maybe not exported by the module/package)? For example: if
>some_func() makes a call to _some_weird_module_specific_func(), how
>are you going to make sure you get the
>_some_weird_module_specific_func function? This doesn't even start to
>work when the function you are interested in is also using functions
>from other modules/packages.
>
>Besides, what py2exe is really doing is grabbing the .pyo or .pyc
>files and throwing them in a zip file. Is it really worth the effort
>to save a 100K or so, at most?
>
>Chris
>

I think in some cases it could save quite a lot more than 100k when
you consider that the module you include to get a single function,
then may include 3 modules for other functions you don't need, and
they in turn do the same.

After looking into it some, I agree it's probably not worth the
effort. Pythons pickle, shelve, and marshal functions don't work on
most module objects, so it's pretty much a dead end.

It would need be doable in a simple and general way to be worth while.

Thanks anyways,

Ron

.



Relevant Pages

  • Re: Monster Bash ... To Bash or Not to Bash, That is the Question
    ... More like...a bird in the hand is worth eight in the outback. ... > The way I see it, Ron, a bird in the hand is worth two in the bush. ... BK restorations may emit a ...
    (rec.games.pinball)
  • Re: OT: Anybody else go to (or try to go to) Dennys for the free Grand Slam?
    ... I am, of course, joking with ya, Ron. ... Bryan (CARGPB 14) ... and what people think their time is worth. ... AND I spent some extra time with my kids (who I only have custody of ...
    (rec.games.pinball)
  • Re: This group is developing nicely.
    ... Sn!pe as King Henry V: Though all that I can do is nothing worth, Since that my penitence comes after all, Imploring Pardon. ... >Dah do, Ron, Ron, Ron, dah do, Ron, Ron. ...
    (uk.rec.sheds)
  • Re: Home Depot Rant
    ... "Ron" wrote ... Groan, well, he found a second pipe when he went to turn all back on so had ... 5 hours worth of work. ...
    (alt.home.repair)
  • Re: OT MP3s
    ... >> I go through $50-$70 worth a week. ... >> Everything from L. Ron to Oliver Twist to James Lee Burke. ... Prev by Date: ...
    (rec.scuba)

Loading