On Apr 18, 2:38 pm, Tristam MacDonald <[email protected]> wrote:
> Yes, but a lot of smaller programs don't need both of audio and video to be
> initialised.  From what I recall, font loading also takes
> an appreciable time on some platforms.

I usually design modules in a way that does not acquire resources at
import time, but at class instantiation time. Though I don't know how
much of pyglets import time is spend setting up resources, and it
might not matter in this case. Unrelated, but the most bothersome
usage of delayed importing I've ever seen was py's greenlet, which
fired up gcc and compiled itself upon the first import.

Though is full import of everything (minus resource loading) really a
problem *if* all modules are pyc's and contained in a zipfile that is
found at the start of sys.path?

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en.

Reply via email to