Large code size in Clojurescript 1.10.x for minimal code with optimizations advanced

Description

With only the code:

Clojurescript 1.9.946 with advanced optimizations generates a js file with 4640 bytes.
Clojurescript 1.10.217 with advanced optimizations generates a js file with 92409 bytes.

Build 1.9.946 with: lein cljsbuild once min
Build 1.10.217 either by updating the project.clj file, or with:

Environment

Linux (nixos) & macosx, Java 9.0.4, Clojure 1.9

Activity

Show:
Mike Fikes
March 23, 2018, 10:30 PM

Minimal repro (without lein cljsbuild):

deps.edn

src/cljsbug/core.cljs

release.clj

Change deps.edn to to depend on 1.10.217:

deps.edn

Mike Fikes
March 23, 2018, 10:46 PM

This is a consequence of two things.

  1. The code pulled in by call (maybe-enable-print!) at the bottom of cljs.core.

  2. The use of ex-info instead of js/Error in the default eval value implementation.

David Nolen
March 24, 2018, 1:03 PM
Completed

Assignee

David Nolen

Reporter

import

Labels

Approval

None

Patch

None

Priority

Critical