Re: [Zope] compile time optimizations for python

2008-01-19 Thread Dieter Maurer
David Bear wrote at 2008-1-18 10:21 -0700:
are there any compile time optimizations for python that would also
help optimize zope? shared libraries? threads? 

As an additional hint to save memory:

  Ensure that the ZODB cache size is tight for the
  temporary database (which contains the session data).
  The default size is usually far too large.

  This advice is especially important when you keep large
  amounts of data in your session objects.



-- 
Dieter
___
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 )


Re: [Zope] compile time optimizations for python

2008-01-18 Thread Andreas Jung



--On 18. Januar 2008 10:56:16 -0700 David Bear [EMAIL PROTECTED] wrote:


On Fri, Jan 18, 2008 at 06:25:29PM +0100, Andreas Jung wrote:



--On 18. Januar 2008 10:21:33 -0700 David Bear [EMAIL PROTECTED]
wrote:

 are there any compile time optimizations for python that would also
 help optimize zope?

Not really. Why do you ask? What is slow? What appears as slow?


I'm putting zope/plone on a virtual machine and I would like to
optimize for memory consumption if possible. I don't know how rapidly
the hosting service I'm using could add ram to the vm.



Memory optimization is tricky. Especially ZODB cache tuning. But there is 
nothing at a compilation that would help you. Perhaps one thing: there is a 
switch that cares about the internal unicode representation (UCS2 vs UCS4).
UCS2 might be the better choice since it will use only 2 byte per unicode 
character instead of 4.


Andreas

pgp0C09i3CCUU.pgp
Description: PGP signature
___
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 )


Re: [Zope] compile time optimizations for python

2008-01-18 Thread Andreas Jung



--On 18. Januar 2008 10:21:33 -0700 David Bear [EMAIL PROTECTED] wrote:


are there any compile time optimizations for python that would also
help optimize zope?


Not really. Why do you ask? What is slow? What appears as slow?

-aj

pgpVATpl4yzgn.pgp
Description: PGP signature
___
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 )


[Zope] compile time optimizations for python

2008-01-18 Thread David Bear
are there any compile time optimizations for python that would also
help optimize zope? shared libraries? threads? 


-- 
David Bear
phone:  602-496-0424
fax:602-496-0955
College of Public Programs/ASU
University Center Rm 622
411 N Central
Phoenix, AZ 85007-0685
 Beware the IP portfolio, everyone will be suspect of trespassing
___
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 )


Re: [Zope] compile time optimizations for python

2008-01-18 Thread David Bear
On Fri, Jan 18, 2008 at 06:25:29PM +0100, Andreas Jung wrote:
 
 
 --On 18. Januar 2008 10:21:33 -0700 David Bear [EMAIL PROTECTED] wrote:
 
 are there any compile time optimizations for python that would also
 help optimize zope?
 
 Not really. Why do you ask? What is slow? What appears as slow?

I'm putting zope/plone on a virtual machine and I would like to
optimize for memory consumption if possible. I don't know how rapidly
the hosting service I'm using could add ram to the vm. 

 
 -aj



-- 
David Bear
phone:  602-496-0424
fax:602-496-0955
College of Public Programs/ASU
University Center Rm 622
411 N Central
Phoenix, AZ 85007-0685
 Beware the IP portfolio, everyone will be suspect of trespassing
___
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 )