File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -103,8 +103,10 @@ things about this function:
103
103
- ` mapslices(sum, A; dims=2) ` is considerably more expensive (the corresponding bar is horizontally wider) than
104
104
` mapslices(sort, B; dims=1) ` . This is because it has to process more
105
105
data.
106
+
107
+ ## Color Coding
106
108
107
- It is also worth noting that red is (by default) a special color: it is reserved for function
109
+ - ** Red ** : is reserved for function
108
110
calls that have to be resolved at run-time.
109
111
Because run-time dispatch (aka, dynamic dispatch, run-time method lookup, or
110
112
a virtual call) often has a significant
@@ -123,7 +125,7 @@ contribution to its total run time.
123
125
See [ Solving type-inference problems] ( solving-type-inference-problems ) below
124
126
for tips on how to efficiently diagnose the nature of the problem.
125
127
126
- Yellow is also a special color: it indicates a site of garbage collection, which can be
128
+ - ** Yellow ** : indicates a site of garbage collection, which can be
127
129
triggered at a site of memory allocation. You may find that such bars lead you to lines
128
130
whose performance can be improved by reducing the amount of temporary memory allocated
129
131
by your program. One common example is to consider using ` @views(A[:, i] .* v) ` instead
You can’t perform that action at this time.
0 commit comments