Thread overview | ||||||
---|---|---|---|---|---|---|
|
July 26, 2013 [Issue 10716] New: Horrifically slow compilation for array literals inside functions | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=10716 Summary: Horrifically slow compilation for array literals inside functions Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: clugdbug@yahoo.com.au --- Comment #0 from Don <clugdbug@yahoo.com.au> 2013-07-26 03:19:49 PDT --- I found this in the DMD test suite. One file, test44.d, takes much longer to compile than any of the others. The actual test is basically just this: --- void main() { int [] x = [ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, ]; } --- but copy the 1,1,1,1, line a thousand times. The slow compilation happens in the glue layer: compiling with dmd -o- is instantaneous, but dmd -c takes minutes. Which is really silly since it can should just compile to a malloc + memcpy from data segment. Compiling with -O makes it even worse. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 27, 2013 [Issue 10716] Horrifically slow compilation for array literals inside functions | ||||
---|---|---|---|---|
| ||||
Posted in reply to Don | http://d.puremagic.com/issues/show_bug.cgi?id=10716 --- Comment #1 from Walter Bright <bugzilla@digitalmars.com> 2013-07-26 19:44:18 PDT --- https://github.com/D-Programming-Language/dmd/pull/2388 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 27, 2013 [Issue 10716] Horrifically slow compilation for array literals inside functions | ||||
---|---|---|---|---|
| ||||
Posted in reply to Don | http://d.puremagic.com/issues/show_bug.cgi?id=10716 Jonathan M Davis <jmdavisProg@gmx.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jmdavisProg@gmx.com --- Comment #2 from Jonathan M Davis <jmdavisProg@gmx.com> 2013-07-26 20:06:03 PDT --- This could be related to bug# 8449. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 14, 2013 [Issue 10716] Horrifically slow compilation for array literals inside functions | ||||
---|---|---|---|---|
| ||||
Posted in reply to Don | http://d.puremagic.com/issues/show_bug.cgi?id=10716 --- Comment #3 from github-bugzilla@puremagic.com 2013-08-13 18:08:56 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/9c97ebe61f85fef25bab8ff3d310a78fb56e38ba fix Issue 10716 - Horrifically slow compilation for array literals inside functions https://github.com/D-Programming-Language/dmd/commit/c9235a9ce3dc0e8dc97b4b9a9c8b83a31950e8f8 Merge pull request #2388 from WalterBright/fix10716 fix Issue 10716 - Horrifically slow compilation for array literals insid... -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation