Commit 4b624a7
committed
Speed up site build
Middleman uses a dope/weird system that implements types in Ruby using
metaprogramming (I highly recommend watching the talk by middleman's
creator about this - https://www.youtube.com/watch?v=W7qj_WFClls).
It's quite slow though. `NO_CONTRACTS=true` will turn off the system
and speed up building. It's [recommended in the middleman
docs](https://middlemanapp.com/basics/build-and-deploy).
```
$ time bundle exec middleman build
real 1m9.209s
user 4m55.782s
sys 0m51.051s
```
```
$ time NO_CONTRACTS=true bundle exec middleman build
real 0m58.144s
user 4m3.325s
sys 0m46.966s
```1 parent 9b93072 commit 4b624a7
4 files changed
+9
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
0 commit comments