Re: Cross-language challenge (of POSSIBLE interest)

From: Lueko Willms (l.willms_at_jpberlin.de)
Date: 02/25/05


Date: 25 Feb 2005 13:57:00 GMT


. On 22.02.05
  wrote ricksmith@mfi.net (Rick Smith)
     on /COMP/LANG/COBOL
     in 111njuk74313u0e@corp.supernews.com
  about Re: Cross-language challenge (of POSSIBLE interest)

RS> Well, I moved the table and it ran slower. I tried some other
RS> things. Ran slower. Decided to stop trying to improve the
RS> algoritms. Moved all the source to one program, and ...
RS>
RS> 8177 a
RS> 319 aaron
RS> 2 aaronites
RS> . . .
RS> 63924 the
RS> . . .
RS> 1 zuriel
RS> 5 zurishaddai
RS> 1 zuzims
RS>
RS> total words = 789781
RS> unique words = 12691
RS> 0.66 Sec 2.4GHz AMD

   I have just completed a version in VB Script (Visual Basic Script),
which -- of course -- does not run that fast: 14.67188 Seconds on a
2.8 GHz AMD Athlon CPU with 768 MByte Memory under Windows NT 5.0, er,
Windows 2000 Server.

   The script uses mostly standard VBS objects classes: Command Line
Arguments, File System Objects, Dictionary (sort of an associative
array), and the Regular Expression object. The dictionary is
unfortunately not sorted, which accounts probably for most of the
running time. The dictionary has to be exported into an array to read
it sequentially, and the array has been sorted by a Quicksort which I
ported to VBS. This Quicksort added only a few fractions of a second
to the running time.

--------- schnipp -----------------------------------------

     8.177 a
       319 aaron
         2 aaronites
        31 aarons

    63.924 the

         3 zorobabel
         5 zuar
         3 zuph
         5 zur
         1 zuriel
         5 zurishaddai
         1 zuzims

Worte insgesamt 789.781
davon verschieden 12.691
Fertig in 14,67188 Sekunden

------------------ schnapp --------------------------------

Yours,
Lüko Willms http://www.willms-edv.de
/--------- L.WILLMS@jpberlin.de -- Alle Rechte vorbehalten --

Die Wörter-Welt. -G.C.Lichtenberg



Relevant Pages

  • Re: I need the fastest routine
    ... sort and pick the first and last elements of the array? ... Because a quicksort is still slower than doing two comparisons per ...
    (borland.public.delphi.language.basm)
  • Re: SQL Server 2000 Performance - 10K vs. 15K
    ... Not a lot slower, but still slower -- and you know ... Log files and data files on separate raid ... OS and Log array is RAID 1 on channel 0, ...
    (microsoft.public.sqlserver.setup)
  • Re: SQL Server 2000 Performance - 10K vs. 15K
    ... Not a lot slower, but still slower -- and you know ... Log files and data files on separate raid ... OS and Log array is RAID 1 on channel 0, ...
    (microsoft.public.sqlserver.setup)
  • Re: Concurent (using threads) slower than sequential -doubt
    ... Since the threads I created really resides as an array that holds ... the thread based program run slower. ... the same physical device ATA disk). ...
    (comp.lang.ruby)
  • Re: Can somebody explain this
    ... the time it takes to reference the collection in the 'slower' method, ... the innerText property was changed. ... > than reaching the element with an Array of the P_Elements that was created ... > Why are accesses with the collection returned from the tags method ...
    (microsoft.public.scripting.jscript)