From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: Optimizing Ada Date: Tue, 01 Oct 2013 21:13:59 -0700 Organization: Also freenews.netfront.net; news.tornevall.net Message-ID: References: <8aca502c-bba8-4af5-9192-459c15fe048b@googlegroups.com> <74846968-cda1-4643-9c11-c38ce5c55949@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 2 Oct 2013 04:14:00 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="5a64620cc83ca47629e9cd617d12fc26"; logging-data="8918"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+J/qPCeREmZoeDw4WJe+xbbqOJg+jQvGg=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 In-Reply-To: <74846968-cda1-4643-9c11-c38ce5c55949@googlegroups.com> Cancel-Lock: sha1:SBwKi/hz/+PTxjgH1t7zRGGrwrY= Xref: news.eternal-september.org comp.lang.ada:17369 Date: 2013-10-01T21:13:59-07:00 List-Id: On 10/01/2013 08:53 PM, kennethesills@gmail.com wrote: >> Ada is the fastest correct implementation you have. > > Yes. However, is case sensitivity the reason for a 2.7x slow down? Highly > unlikely. In fact, using case-sensitive comparisons in Ada only reduce the > time taken by around 50ns. So I just disregarded that fact. I agree that the implementation of Indefinite_Hashed_Maps is probably the culprit, but until you have an apples-to-apples comparison, you have no complaint. (Actually, I can't think of any application that could use such a function where the difference would prevent it from meeting reasonable timing requirements, so you probably have no complaint anyway.) -- Jeff Carter "This school was here before you came, and it'll be here before you go." Horse Feathers 48