From: David Sauvage <pariakaman@gmail.com>
Subject: Re: [Shootout] Spellcheck.adb
Date: Tue, 26 Apr 2005 21:36:57 +0200
Date: 2005-04-26T21:36:57+02:00 [thread overview]
Message-ID: <sLwbe.50677$Of5.32567@nntpserver.swip.net> (raw)
In-Reply-To: <1114464642.518876.137610@f14g2000cwb.googlegroups.com>
Hi,
happy to read your post, also because i'm the folk who proposed the
spellcheck ada implementation :-), i don't undestand yet the shootout
spellcheck error as it works nicely on my system, does it failed on
yours too ? may be you could describe the errors here if so ? thanks
albert.bachmann@gmx.de wrote:
> Now what I'd like to ask you is how I can speed up my Ada solution?
You can find interesting discussion on the spellcheck implementation &
speed issue in the thread named "Ada Bench" of comp.lang.ada
you could use :
- Ada.Streams.Stream_IO.Read instead of Ada.Text_IO.Get_Line
- the shootout spellcheck C++ hash function as hash function
albert.bachmann@gmx.de wrote:
>
> real 0m0.742s
> user 0m0.720s
> sys 0m0.009s
>
Is it for N=1 ? could you describe your system configuration & the
command line used to launch the program ?
Well done, i was about 5 min on my first implementation ;-)
here is the shootout spellcheck implementation (for N=1) duration, you
can take a look on my system configuration on the Ada Bench thread :
real 0m0.126s
user 0m0.078s
sys 0m0.013s
To compare (just because we are talking about benchmark and how to speed
up our programs) here is your posted implementation on my system (i add
the line with Ada.Strings.Fixed; as "strings.fixed.delete" was not
handle by my compiler without it)
real 0m1.432s
user 0m1.361s
sys 0m0.014s
Your next version should be far far better ;-)
Hope it could help ;-)
David
next prev parent reply other threads:[~2005-04-26 19:36 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-25 21:30 [Shootout] Spellcheck.adb albert.bachmann
2005-04-25 21:57 ` Spellcheck.adb Albert Bachmann
2005-04-25 23:27 ` [Shootout] Spellcheck.adb Marius Amado Alves
2005-04-26 18:04 ` Spellcheck.adb Matthew Heaney
2005-04-26 19:36 ` David Sauvage [this message]
2005-04-26 20:50 ` Spellcheck.adb Albert Bachmann
2005-04-27 15:11 ` Spellcheck.adb Matthew Heaney
2005-04-27 22:49 ` Spellcheck.adb Albert Bachmann
2005-04-27 23:35 ` Spellcheck.adb Marius Amado Alves
2005-04-27 23:58 ` Spellcheck.adb Albert Bachmann
2005-04-28 0:19 ` Spellcheck.adb Marius Amado Alves
2005-04-29 10:22 ` Spellcheck.adb Albert Bachmann
2005-04-28 0:58 ` Spellcheck.adb Matthew Heaney
2005-04-29 10:19 ` Spellcheck.adb Albert Bachmann
2005-04-28 0:41 ` Spellcheck.adb Matthew Heaney
2005-04-28 21:20 ` Spellcheck.adb Simon Wright
2005-04-29 10:05 ` Spellcheck.adb Albert Bachmann
2005-04-29 12:35 ` Spellcheck.adb Matthew Heaney
2005-04-26 21:21 ` Spellcheck.adb Albert Bachmann
2005-04-26 22:04 ` Spellcheck.adb David Sauvage
2005-04-26 20:36 ` [Shootout] Spellcheck.adb Dmitry A. Kazakov
2005-04-26 21:50 ` David Sauvage
2005-04-27 8:40 ` Dmitry A. Kazakov
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox