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

Slow compile time suggestions? #204

Open
seanmcl opened this issue Oct 18, 2017 · 1 comment
Open

Slow compile time suggestions? #204

seanmcl opened this issue Oct 18, 2017 · 1 comment

Comments

@seanmcl
Copy link
Contributor

seanmcl commented Oct 18, 2017

I've got around 2000 lines (in 8 different files) of library code built up. The compile times are becoming significant, around 120 seconds on a new MacBook Pro. Does anyone have advice about keeping these times down? All the time is spent in the type checker.

@seanmcl
Copy link
Contributor Author

seanmcl commented Oct 18, 2017

When I run scalac with -Xlog-implicits I see lots of these:

Information:(492, 32) $conforms is not a valid implicit value for com.monsanto.arch.cloudformation.model.Fn::Sub => com.monsanto.arch.cloudformation.model.Token[String] because:
hasMatchingSymbol reported error: type mismatch;
 found   : com.monsanto.arch.cloudformation.model.Fn::Sub <:< com.monsanto.arch.cloudformation.model.Fn::Sub
 required: com.monsanto.arch.cloudformation.model.Fn::Sub => com.monsanto.arch.cloudformation.model.Token[String]
            Resource = Some(Seq(

I wonder if there's a way to short circuit some of this search.

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

No branches or pull requests

1 participant