[I18n-sig] XML and codecs

Walter Doerwald walter@livinglogic.de
Thu, 07 Jun 2001 11:53:46 +0200


On 06.06.01 at 17:57 M.-A. Lemburg wrote:

> [...]
> > Do we want error handling callbacks?
> 
> I think we should still keep them on the TODO list.

OK! Then I'll start playing around with it.

> > And finally: How fast is it?
> 
> Since errors will always cause extra cycles to be used,
> I think the small overhead of using an exception for
> the notification is reasonable.
> 
> Written in C, you probably won't notice much of a slowdown
> compared to a callback solution, since there exceptions are
> faster than in Python (the exception objects are created
> lazily in Python).
>
> > > > > * it fits in with the current API
> > > >
> > > > That's right. Unfortunately there are a lot of functions that
> > > > would have to be changed.
> > >
> > > That's why I prefer small steps rather than replacing the
> > > complete codec suite with new interfaces.
> > 
> > The type of one argument changes in all the functions, i.e.
> > there's a new set of *Ex functions, where
> >         const char *errors
> > becomes
> >         PyObject *errors
> 
> .. plus all the callback logic which goes with it, changes
> to the way errors are handled by the codecs, etc. It is doable,
> but certainly a lot of work.

Well, I need something to do in my free time! ;)


Bye,
   Walter D=F6rwald

-- 
Walter D=F6rwald =B7 LivingLogic AG =B7 Bayreuth, Germany =B7
www.livinglogic.de