Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <3FBE7A8A.6080005@redhat.com> Date: Fri, 21 Nov 2003 15:50:18 -0500 From: "J. Johnston" Organization: Red Hat Inc. User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "J. Johnston" Cc: Wayne Hayes , newlib AT sources DOT redhat DOT com, cygwin AT cygwin DOT com Subject: Re: [wayne AT cs DOT toronto DOT edu: Cygwin-1.5.5 sscanf on floats: 20 times slower than 2 years ago] References: <03Nov17 DOT 130546edt DOT 453219-16291 AT jane DOT cs DOT toronto DOT edu> <3FBE6D21 DOT 1080305 AT redhat DOT com> In-Reply-To: <3FBE6D21.1080305@redhat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit J. Johnston wrote: > Wayne Hayes wrote: > >>> Since scanf and the floating point arithmetic is implemented in newlib, >>> I've redirected this message there. Does anybody have an idea, what >>> could slow down float scanning in sscanf by a factor of 20? >> >> >> >> Thanks! Just to be pedentic, I realized that it's worse than a factor >> of 20. >> My *entire simulation* slows down by a factor of 20; there's significant >> other computation in it. So the scanf slowdown is probably closer to >> hundreds of times. *Something* fishy must be going on. :-) >> > > The reason for the slow down is long double support. A new routine > _strtold is used instead of _strtod_r. I am working on a patch to use > the old routine for non-long-doubles to avoid the slow down. > > -- Jeff J. > Patch checked in. -- Jeff J. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/