ClojureScript

Compilation a lot slower in 0.0-2127 compared to 0.0-1978.

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    Linux, org.clojure/clojurescript "0.0-2127"

Description

Using cljsbuild auto: the compilation times I had with 0.0-1978:
21.705943966 seconds. (first file modification)
6.565231432 seconds. (stays stable for future modifications)

With 0.0-2127:
31.177024278 seconds. (first file modification)
10.492762657 seconds. (stays stable for future modifications)

I don't know if at some point a feature justifies the slow down, or if this is unexplained and hence should be treated as a bug.

The project I'm compiling is around 1138 lines of code (wc -l) spread over 15 files.

Activity

Hide
David Nolen added a comment -

Is this with or without source maps enabled?

Show
David Nolen added a comment - Is this with or without source maps enabled?
Hide
William added a comment -

With source maps, targeting node.

Show
William added a comment - With source maps, targeting node.
Hide
William added a comment -

project.clj used for the project, might be useful.

Show
William added a comment - project.clj used for the project, might be useful.
Hide
David Nolen added a comment -

Source maps slow things down. There have been a variety of changes that make source maps more accurate and more compatible with incremental compilation which no doubt slows things down.

So no I would not consider this a bug. Certainly there are further enhancements we could make that would improve compile times significantly, like caching analysis results to disk, etc.

Show
David Nolen added a comment - Source maps slow things down. There have been a variety of changes that make source maps more accurate and more compatible with incremental compilation which no doubt slows things down. So no I would not consider this a bug. Certainly there are further enhancements we could make that would improve compile times significantly, like caching analysis results to disk, etc.

People

  • Assignee:
    Unassigned
    Reporter:
    William
Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: