Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Long compilation time with std.net.curl import #18571

Closed
dlangBugzillaToGithub opened this issue Apr 26, 2013 · 2 comments
Closed

Long compilation time with std.net.curl import #18571

dlangBugzillaToGithub opened this issue Apr 26, 2013 · 2 comments

Comments

@dlangBugzillaToGithub
Copy link

bearophile_hugs reported this on 2013-04-26T09:42:32Z

Transferred from https://issues.dlang.org/show_bug.cgi?id=9995

CC List

Description

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
@dlangBugzillaToGithub
Copy link
Author

hsteoh commented on 2014-08-29T15:01:55Z

Does this still happen? On git HEAD (Linux/64) it compiles within 1-2 seconds for me.

@dlangBugzillaToGithub
Copy link
Author

bearophile_hugs commented on 2014-08-30T08:34:50Z

(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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants