Harald van Dijk <[email protected]> wrote:

> On 15/01/2019 15:13, Joerg Schilling wrote:
> > BTW: Given that the multi byte support requires sevral conversions between
> > multi byte chars and wide chars and that these conversions take approx. 30% 
> > of
> > the typical time used by the shell, adding multi byte support to dash would
> > make it she slowest shell in the universe.
...
> Having actually implemented this in my fork of dash, I can tell you that 
> this is false. I have already added multi-byte support to the shell 
> outside of the parser in the publicly available version, and have a 
> not-yet-public patch to implement multi-byte character support in the 
> parser as well. Testing on its own configure script, yes, there are 
> faster shells, including yours, but it's still fast, still close to 
> dash, and that's with a fairly simple implementation that focuses more 
> on size than on speed.

It would be interesting to see whether you did identify all needed locations 
for multi byte enhancements. Did you look at the Bourne Shell to see where it 
implements such multi/wide/multi conversions?

BTW: I would be happy to check such an enhanced version and compare the 
performance with other shells ;-)

Jörg

-- 
 EMail:[email protected]                    (home) Jörg Schilling D-13353 Berlin
    [email protected] (work) Blog: http://schily.blogspot.com/
 URL: http://cdrecord.org/private/ http://sf.net/projects/schilytools/files/'

Reply via email to