Thread overview
[Issue 14937] Slow code compared to ldc/gdc on calculation with real variables
Aug 19, 2015
Walter Bright
Dec 17, 2022
Iain Buclaw
August 19, 2015
https://issues.dlang.org/show_bug.cgi?id=14937

--- Comment #1 from secondaryAccount@web.de ---
Created attachment 1543
  --> https://issues.dlang.org/attachment.cgi?id=1543&action=edit
compressed benchmark input file

reduced benchmark input file to pass size limit.

--
August 19, 2015
https://issues.dlang.org/show_bug.cgi?id=14937

--- Comment #2 from secondaryAccount@web.de ---
Created attachment 1544
  --> https://issues.dlang.org/attachment.cgi?id=1544&action=edit
full benchmark code for reduced input file

The attached input file contains 1400 example vectors. This benchmark programm calls cosineSimilarity 700 x 700 times (controlled by slices / foreach loops in main). Sufficient to reproduce.

The timings in the bug report are based on 1000 x 1000 calls of cosineSimilarity and 2000 example vectors.

Path to input file is hard coded (same directory) -> line 11

--
August 19, 2015
https://issues.dlang.org/show_bug.cgi?id=14937

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |performance
                 CC|                            |bugzilla@digitalmars.com

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=14937

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P4

--
December 13
https://issues.dlang.org/show_bug.cgi?id=14937

--- Comment #3 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/19030

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--