Commit d1b7722
authored
Fix non-deterministic compile-time code (#646)
The BEAM files for these two modules would change when compiled even
though their corresponding source files were the same. This was due to
maps having an unspecified traversal order. Sorting the map entries or
keys makes their compilation deterministic.
This helps Nerves minimize the number of changes that need to be sent
over the wire for delta firmware updates.1 parent 245a5e8 commit d1b7722
2 files changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
| 265 | + | |
265 | 266 | | |
266 | 267 | | |
267 | 268 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
0 commit comments