Commit 317c55a
Get rid of the
* Get rid of the `release` flag
Problem: `kore.cabal` contains `release` flag which is off by default.
When it's disabled, code is compiled without `specialise` optimization.
The flag is a bit weird: it's not clear why one may want to disable
only this specific optimization. It indeed makes compilation faster
and runtime slower, but if you want that, you may simply disable all
optimizations.
Solution:
1. We have tested whether enabling more optimizations (`-O2`) can
improve performance compared to the default configuration.
Our results indicate that the difference is negligible.
2. Since default configuration produces optimal performance, we don't
need an extra flag to determine whether we want to compile code faster
or to have faster runtime. Both `stack` and `cabal` have an easy way
to enable/disable optimizations.
3. For the reasons above, we are removing this flag from `kore.cabal`.
Now default build process should produce optimal executable (with all
`-O1` optimizations enabled which should be sufficient).
4. We are also updating the README file to mention how one can build
code faster (and get slower runtime).
Resolves #3135
* Materialize Nix expressions
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: ana-pantilie <45069775+ana-pantilie@users.noreply.github.com>release flag (#3160)1 parent fd06257 commit 317c55a
3 files changed
+3
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | 22 | | |
28 | 23 | | |
29 | 24 | | |
| |||
587 | 582 | | |
588 | 583 | | |
589 | 584 | | |
590 | | - | |
591 | | - | |
592 | 585 | | |
593 | 586 | | |
594 | 587 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
0 commit comments