The Scribble docs for my
Rebellion package take nearly two minutes to build. I have a hunch that most of the time is spent compiling, evaluating, and rendering example code. Every one of my Scribble modules is structured roughly like this:
#lang scribble/manual
(require ...)
(define make-evaluator
(... build an evaluator factory using make-base-eval-factory ...))
...
@defwhatever[...]{
@(examples
#:eval (make-evaluator) #:once
... example code here ...)}
Does this pattern have any performance or memory usage problems? Is there more I can do to speed things up? How do I profile Scribble docs? Is it normal for `raco setup` to spend much more time building my documentation than it spends actually compiling my library's code?