Skip to content

Commit 01f4ffa

Browse files
committed
Change sort order for source files (sort by compile time)
This should give slightly faster build times when compiling in parallel with many threads. bigger files (in terms of compile time) tend to go to the top, so they don't end up as the last compile unit when compiling in parallel. But we also want to mix them a little too avoid heavy RAM usage peaks. Other than that the order is arbitrary.
1 parent 08ece7d commit 01f4ffa

File tree

1 file changed

+28
-23
lines changed

1 file changed

+28
-23
lines changed

Makefile.conf

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,51 @@
11
# this is merely a common Makefile multiple implementers can use
2+
# bigger files (in terms of compile time) tend to go to the top,
3+
# so they don't end up as the last compile unit when compiling
4+
# in parallel. But we also want to mix them a little too avoid
5+
# heavy RAM usage peaks. Other than that the order is arbitrary.
6+
27

38
SOURCES = \
49
ast.cpp \
5-
base64vlq.cpp \
6-
bind.cpp \
7-
check_nesting.cpp \
8-
color_maps.cpp \
9-
constants.cpp \
10+
node.cpp \
1011
context.cpp \
11-
cssize.cpp \
12-
emitter.cpp \
12+
constants.cpp \
13+
functions.cpp \
14+
color_maps.cpp \
1315
environment.cpp \
14-
error_handling.cpp \
15-
eval.cpp \
16-
expand.cpp \
17-
extend.cpp \
16+
bind.cpp \
1817
file.cpp \
19-
functions.cpp \
20-
inspect.cpp \
18+
util.cpp \
2119
json.cpp \
22-
lexer.cpp \
23-
listize.cpp \
24-
memory_manager.cpp \
25-
node.cpp \
26-
output.cpp \
27-
parser.cpp \
20+
units.cpp \
21+
values.cpp \
2822
plugins.cpp \
2923
position.cpp \
24+
lexer.cpp \
25+
parser.cpp \
3026
prelexer.cpp \
27+
eval.cpp \
28+
expand.cpp \
29+
listize.cpp \
30+
cssize.cpp \
31+
extend.cpp \
32+
output.cpp \
33+
inspect.cpp \
34+
emitter.cpp \
35+
check_nesting.cpp \
3136
remove_placeholders.cpp \
3237
sass.cpp \
3338
sass_util.cpp \
3439
sass_values.cpp \
3540
sass_context.cpp \
3641
sass_functions.cpp \
3742
sass2scss.cpp \
38-
source_map.cpp \
3943
to_c.cpp \
4044
to_value.cpp \
41-
units.cpp \
45+
source_map.cpp \
46+
error_handling.cpp \
47+
memory_manager.cpp \
4248
utf8_string.cpp \
43-
values.cpp \
44-
util.cpp
49+
base64vlq.cpp
4550

4651
CSOURCES = cencode.c

0 commit comments

Comments
 (0)