www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12509] New: Compiler performance highly depends on declared array size - for struct with long static array of structs

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12509

           Summary: Compiler performance highly depends on declared array
                    size - for struct with long static array of structs
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: coolreader.org gmail.com


--- Comment #0 from Vadim Lopatin <coolreader.org gmail.com> 2014-04-02
23:16:28 PDT ---
Created an attachment (id=1342)
Source file to reproduce

DMD 2.065 under winXP/32 compiles following example very slow
 dmd main.d

Not reproduced with 64bit compiler on linux --- main.d -------------------------- module main; struct Foo // must be struct to reproduce { uint foo; // any data can be here } struct Bar // must be struct to reproduce { // DMD 2.065 hang with 100% CPU load // works ok if array size is reduced Foo[0x20000] _array; // 0x4000 - < 1 second // 0x8000 - 5 seconds // 0xC000 - 15 seconds // 0xE000 - 20 seconds // 0x10000 - 25 seconds // 0x20000 - 1:45 } int main(string[] argv) { return 0; } --------------------------------------- -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 02 2014
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12509


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |michaelpm394 gmail.com


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2014-04-05
17:30:56 CEST ---
*** Issue 12525 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 05 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12509


Vladimir Panteleev <thecybershadow gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thecybershadow gmail.com
           Severity|normal                      |regression


--- Comment #2 from Vladimir Panteleev <thecybershadow gmail.com> 2014-04-05
18:32:03 EEST ---
This is a regression in 2.064.2.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 05 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12509



--- Comment #3 from Vladimir Panteleev <thecybershadow gmail.com> 2014-04-05
18:40:29 EEST ---
Introduced in https://github.com/D-Programming-Language/dmd/pull/2605

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 05 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12509


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |performance, pull


--- Comment #4 from Kenji Hara <k.hara.pg gmail.com> 2014-04-05 23:20:11 PDT ---
https://github.com/D-Programming-Language/dmd/pull/3425

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 05 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12509



--- Comment #5 from github-bugzilla puremagic.com 2014-04-08 05:26:05 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/f111434251af84e90abc709a49527ec76b9e1a97
fix Issue 12509 - Compiler performance highly depends on declared array size -
for struct with long static array of structs

https://github.com/D-Programming-Language/dmd/commit/db2291fc32b08187fb5862eefe3160a3e6b3dd90
Merge pull request #3425 from 9rnsr/fix12509

[REG2.064] Issue 12509 - Compiler performance highly depends on declared array
size - for struct with long static array of structs

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 08 2014
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12509


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 08 2014