Re: [pollen] Why is render-from-source-or-output-path function quicker than get-source and then render?

2018-02-10 Thread Matthew Butterick
> On Feb 9, 2018, at 10:18 PM, Junsong Li wrote: > > I think I might have hit a bug in racket serve/servlet. The actual blocking > point is the pollen get-source. It runs only half way through for certain js > files (it detects markup, markdown, and are blocked before

[pollen] Why is render-from-source-or-output-path function quicker than get-source and then render?

2018-02-09 Thread Junsong Li
So pollen-rock used to use the following code logic to decide whether to render a pollen source when a HTTP request coming in (let ((pollen-source (get-source filepath))) (when pollen-source (render-to-file-if-needed pollen-source)) (next-dispatcher))) For small projects, this