Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Apr 1997 00:57:12 +0400 (MSD)
From:      "Alexander V. Lukyanov" <lav@yars.free.net>
To:        ache@nagual.ru, peter@spinner.DIALix.COM
Cc:        bugs@freebsd.org, kev@l321.omsk.net.ru
Subject:   Re: sscanf is slow on 2.2.1
Message-ID:  <199704042057.AAA18942@gemini.yars.free.net>

next in thread | raw e-mail | index | archive | help
> From: =?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?= <ache@nagual.ru>

> I just add speedup in case locale is not used. Nothing can be speeduped
> when locale is used, however...

But I noticed fstat being called inside sscanf... I don't know why it is, but
if cache something (locale info?) it could be speed up.

As about building the character set with locale, it could be very efficient
if there were two prebuilt 256 character tables: map character to linear code 
and map linear code to character. So we just get two linear codes for bound
characters and then fill the set with characters in the second table between
those two bound linear codes. Very simple.

   Alexander.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704042057.AAA18942>