opental-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[OpenTAL-dev] Re: Speeding up opental


From: Lalo Martins
Subject: [OpenTAL-dev] Re: Speeding up opental
Date: Fri, 21 Mar 2003 15:55:52 -0300
User-agent: Mutt/1.4i

We have a mailing list, opental-dev
(http://mail.nongnu.org/mailman/listinfo/opental-dev).  It has
no traffic to date, but if you plan to work seriously with
opental perhaps we should move this discussion there.

On Fri, Mar 21, 2003 at 07:36:47PM +0100, address@hidden wrote:
> 
> Lo Lalo. 
> 
> There is a long time since we chat on 
> irc. I have done several thing w/ opental 
> mainly webware + modeling. I got two problem
> - one regarding thread with modeling 

Is this problem opental-related?  AFAIK opental is thread-safe
(it must be, if it works with Zope), maybe it's a matter of
havin one Static context per thread.

> - and speed of openTAL.
> 
> So, i 'm wondering if there is a way to 
> to speed up openTAL again. This sample
> code for example :
> <span tal:repeat="i python: range(1,1000)" tal:omit-tag="">
> </span>
> take something like 1.7 sec to render :( 

We haven't even begun to optimize.  We're following the good
principle of "first get it right then get it fast", or in the
words of Martin Fowler [Fowler, Refactoring]:

"With a well-factored program you have finer granularity for
your performance analysis.  Your profiler leads you to smaller
parts of the code, which are easier to tune."

That said, past profiling shows a lot of the time is spent in
pastransform.Engine.transform(); this method IMO needs further
refactoring (it can probably be broken down in three or four
different methods) but I'm afraid sooner or later I will have to
replace some parts of it with C.

One thing you can do to help is run careful profiling sessions
and send us summaries of the results.

[]s,
                                               |alo
                                               +----
--
            Those who trade freedom for security
               lose both and deserve neither.
--
http://www.laranja.org/                mailto:address@hidden
         pgp key: http://www.laranja.org/pessoal/pgp

Eu jogo RPG! (I play RPG)         http://www.eujogorpg.com.br/
GNU: never give up freedom                 http://www.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]