Re: [Zope] bytecode cache?

2005-06-22 Thread Dieter Maurer
Jaroslav Luke-Bš wrote at 2005-6-22 14:51 +0200:-A >I have idea about bytecode cache in Zope, it is possible to implement? > >What I mean: python scripts (in ZODB), DTML documents/methods, ZPT will be >bytecode compiled in similar way like ordinary .py scripts into .pyc and then >run much faste

RE: [Zope] bytecode cache?

2005-06-22 Thread Brian Lloyd
> I have idea about bytecode cache in Zope, it is possible to implement? > > What I mean: python scripts (in ZODB), DTML documents/methods, > ZPT will be bytecode compiled in similar way like ordinary .py scripts > into .pyc and then run much faster than "noncompiled" ZODB objects. I > think that

RE: [Zope] bytecode cache?

2005-06-22 Thread Pascal Peregrina
Well, as far as I know, "bytecode" is generated by the marshal module. And marshal can only precompile simple data types and code (classes, functions). So objects (class instances) can not be byte compiled. But I may be wrong... However, I had a funny idea too... I have been wondering about using