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 marshal in ZODB instead of pickle, I mean,
we only store object's states there, and as far as I have been investigating
object states are simple python types that could be handled by marshal... But I 
am pretty sure I may have missed something that makes this completely
impossible to achieve.
It's just that, even using the highest protocol in pickle, serialization and
deserialization of simple python types is much faster with marshal.

Pascal

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
Jaroslav LukeŇ°
Sent: 22 June 2005 13:52
To: zope@zope.org
Subject: [Zope] bytecode cache?


Dear zope core developers,

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 it should have

significant speed improvement.

... or I am totally out?

Best regards,

-- 

                        Jaroslav Lukesh
  -------------------------------------------------------------
  This e-mail could not contain any viruses because I use Linux
_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************

_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to