-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/compile: vmware govmoni package is slow to compile #16868
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
Comments
I think this is a dup of #14775. Dave wrote gentypes to simulate vim25/types -- search for vim25 in the golang-dev thread "Compiler performance with a huge project". |
Also, this package does 5769 calls to reflect.TypeOf, populating a map:
As @randall77 was mentioning the other day, the compiler could inline the |
@josharian, ah, indeed. I searched the issue tracker for the vmware phrases but didn't find it. Thanks. Closing this one. |
Calling reflect.TypeOf at runtime shouldn't impact the time to compile this On Thu, Aug 25, 2016 at 9:16 AM, Brad Fitzpatrick notifications@github.com
|
But setting up those calls does, particularly as compared to emitting static data. |
My bug conflated two things I saw. I filed a separate bug for the typeof part. |
(TypeOf bug is #16869) |
The official vmware client library (which I'm currently starting to use for builder work) has an auto-generated package that is very slow to compile:
Anyway interested in investigating?
/cc @randall77 @mdempsky @griesemer @josharian
The text was updated successfully, but these errors were encountered: