Edi Weitz wrote:
On Wed, 27 Dec 2006 22:54:07 +0200, Anton Vodonosov vodonosov@mail.ru wrote:
Instead of creating a class for each external format in order to optimize STREAM-READ-CHAR, we can just take all decision making code out from STREAM-READ-CHAR to (SETF FLEXI-STREAM-EXTERNAL-FORMAT).
Yes, I initially wrote something like that, but I thought it was kind of ugly and hard to maintain.
Do you still think so? I'm ready to rerefactor it, if you are agree that above approach is better.
You pointed here - http://thread.gmane.org/gmane.lisp.steel-bank.general/1400/ - that "the code has lost quite a bit of its original elegance". It's true. Now we have new entities appeared in the library "world" only for optimization. And all optimization is to make decision only once, instead of making it every time when character is read.
Regards, -Anton