Skip to content

Touching a file in src/test/resources triggers test:fastOptJS #1635

@japgolly

Description

@japgolly

If I touch a file in src/test/resources, it causes a rebuild of my test JS and taking about 5 seconds.

webapp-client> last test:fastOptJS
[info] Fast optimizing .../target/scala-2.11/webapp-client-test-fastopt.js
[debug] Linker: Read info: 25703 us
[debug] Linker: Compute reachability: 475989 us
[debug] Linker: Assemble LinkedClasses: 859315 us
[debug] Linker: cache stats: reused: 15325 -- invalidated: 0 -- trees read: 0
[debug] Linker: 1367511 us
[debug] Inc. optimizer: Batch mode: false
[debug] Inc. optimizer: Incremental part: 18493 us
[debug] Inc. optimizer: Optimizing 0 methods.
[debug] Inc. optimizer: Optimizer part: 50 us
[debug] Inc. optimizer: 32347 us
[debug] Refiner: Compute reachability: 364890 us
[debug] Refiner: Assemble LinkedClasses: 19782 us
[debug] Refiner: 384803 us
[debug] Emitter: Class tree cache stats: reused: 4193 -- invalidated: 0
[debug] Emitter: Method tree cache stats: resued: 20894 -- invalidated: 0
[debug] Emitter (write output): 278975 us

I think this is separate from the incremental linker issue in that regardless of how fast linking can be, it shouldn't be triggered if the underlying compilation units haven't changed.

Metadata

Metadata

Assignees

Labels

enhancementFeature request (that does not concern language semantics, see "language")

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions