sbt-header icon indicating copy to clipboard operation
sbt-header copied to clipboard

Possible performance issue

Open 2m opened this issue 6 years ago • 1 comments

I have configured sbt-header to create headers on every compile. With the new sbt 1.3.0-RC3 super shell, which displays actively running tasks, I can see that the headerCreate task shows up quite often. For example it takes around 3-4 seconds in headerCreate task under various scopes until sbt starts compiling sources.

Could the performance be improved by introducing incremental cache for files that have headers checked? (similar to the one in sbt-scalafmt: https://github.com/scalameta/sbt-scalafmt/pull/13)

2m avatar Jul 31 '19 12:07 2m

Thanks a lot for this observation. I guess a cache would indeed help. PRs welcome.

hseeberger avatar Jul 31 '19 13:07 hseeberger