#5452 HIGH Update.: Beat XP in activity startup time.

Zarro Boogs per Child bugtracker at laptop.org
Thu Jun 5 22:03:56 EDT 2008


#5452: Beat XP in activity startup time.
---------------------+------------------------------------------------------
  Reporter:  cscott  |       Owner:  cjb             
      Type:  defect  |      Status:  new             
  Priority:  high    |   Milestone:  Update.2 (8.2.0)
 Component:  distro  |     Version:                  
Resolution:          |    Keywords:                  
  Verified:  0       |    Blocking:                  
 Blockedby:          |  
---------------------+------------------------------------------------------
Changes (by mtd):

 * cc: marco, tomeu (added)


Comment:

 Replying to [comment:4 cscott]:
 > mtd: great!
 >
 > This probably won't work for *all* modules, but it should work for a
 good number of them.

 It's tempting to play with
 [http://www.princeton.edu/~csbarnes/code/autoimp/ autoimp] but that does
 seem like overkill


 > I'm hoping for a result that let's us replace (say):
 > :import foo
 > with
 > :lazy_import('foo')
 > or some such (how close to the standard python syntax can we make it?)
 so that the sugar folks can keep their 'all imports must be at the top of
 the file' coding guidelines without killing our performance.

 Indeed, that's what I was thinking too.
 [http://peak.telecommunity.com/DevCenter/Importing Importing] does exactly
 that (import foo --> foo = lazyModule("foo")), and a
 [http://blog.ianbicking.org/py-std.html py.std] type of syntactic sugar
 could then be added if absolutely necessary (but IMHO that's overkill -
 lazyModule("foo") seems fine to me).

 > I look forward to seeing a patch!  This always seemed like a fun grungy
 python project to me, I just haven't had time to do it in the past six
 months... (sigh)

 :)

 I have added some sugar guys to the cc: so they might not be totally
 surprised when I ask them about this on irc.

-- 
Ticket URL: <http://dev.laptop.org/ticket/5452#comment:5>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list