D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 9995 - Long compilation time with std.net.curl import
Summary: Long compilation time with std.net.curl import
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Windows
: P3 minor
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-26 09:42 UTC by bearophile_hugs
Modified: 2024-12-13 18:06 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description bearophile_hugs 2013-04-26 09:42:32 UTC
I don't know if this should be considered as a problem, but this little program:


import std.net.curl;
void main() {}


in some cases takes a long time to compile:


Compilation times, seconds:
 <no switches>:                       1.17
 -O -inline -release:                 1.40
 -O -inline -noboundscheck:           1.42
 -noboundscheck -release:             1.14
 -inline -noboundscheck -release:     6.34
 -O -inline -noboundscheck -release: 23.53
Comment 1 hsteoh 2014-08-29 15:01:55 UTC
Does this still happen? On git HEAD (Linux/64) it compiles within 1-2 seconds for me.
Comment 2 bearophile_hugs 2014-08-30 08:34:50 UTC
(In reply to hsteoh from comment #1)
> Does this still happen? On git HEAD (Linux/64) it compiles within 1-2
> seconds for me.

On the same system (Windows 32 bit) with -O -inline -noboundscheck -release dmd 2.067alpha takes about 5 seconds (and 420 MB RAM, that is a lot for such program), so the timing is much better.
Comment 3 dlangBugzillaToGithub 2024-12-13 18:06:26 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

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

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