Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
content: Split exhibits into separate files.
I have just learned that using more separate files can improve rebuild times, by reducing the amount of code whose spans (and hence panic messages, debug info, etc.) change. In particular, this change cuts 1 second out of 10 seconds off the time to recompile a small change to some exhibit code that also changes line breaks. Edit-to-rerun time while tinkering with exhibits is important, so this feels worthwhile. Also, `exhibits.rs` was getting uncomfortably long anyway, and creating more modules gives us an opportunity to explicitly group the code for related exhibits, such as the three related to color processing and the three related to transparency. (Of course, this grouping reduces the benefit of the splitting somewhat.)
- Loading branch information