Re: Weird generator id() behaviour (was Re: Python code written in1998, howto improve/change it?)

2006-01-25 Thread Bengt Richter
On Wed, 25 Jan 2006 12:33:17 +1300, Carl Cerecke [EMAIL PROTECTED] wrote: Adding a continue statemtent after the yield statements yields :-) a speed increase. Still not as good as functions though. (about 30% slower) Cheers, Carl Carl Cerecke wrote: Carl Cerecke wrote: Generator FSM done

Re: Weird generator id() behaviour (was Re: Python code written in1998, howto improve/change it?)

2006-01-24 Thread Carl Cerecke
Adding a continue statemtent after the yield statements yields :-) a speed increase. Still not as good as functions though. (about 30% slower) Cheers, Carl Carl Cerecke wrote: Carl Cerecke wrote: Generator FSM done properly (well, better anyway). They are still almost twice as slow as plain