Enhancements for the scribble language (a documentation language based on Racket)
Go to file
Matthew Flatt b47e95950b scribble/eval: change handling of serializable convertible results
When an evaluation result from a sandboxed computation is convertible
(so that it should be preserved for rendering) and serializable, then
serialize the value from transfer from the sandboxed environment to
the rendering environment.

This change complements the one that makes `pict`s serializable.
Serializing a pict result avoids retaining the sandboxed environment,
including its instance of the `pict` and `racket/draw` modules,
when a sandbox-created pict is part of the generated document.
For example, the memory use of the result of "math.scrbl" is about
20% smaller with this change.

original commit: c9a11c4ee4dff8e099e30d8c5040b087dae4a42b
2014-09-04 23:46:18 +02:00
pkgs/scribble-pkgs scribble/eval: change handling of serializable convertible results 2014-09-04 23:46:18 +02:00