[Issue 12509] New: Compiler performance highly depends on declared array size - for struct with long static array of structs
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Apr 2 23:16:30 PDT 2014
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 at puremagic.com
ReportedBy: coolreader.org at gmail.com
--- Comment #0 from Vadim Lopatin <coolreader.org at 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
(compliles very slow)
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: -------
More information about the Digitalmars-d-bugs
mailing list