Hello Arne! Thanks for the link. So far I have only tried with a tiny CSS file, so I have no idea, whether I would run into a problem, besides memory consumption, for big files. I wonder, whether I should simply use sendfile described in https://www.gnu.org/software/guile/manual/html_node/File-System.html#File-System. I think it was mentioned to be in GUIX somewhere, as an example. So far I did not get to look at it.
Regard, Zelphir On 18.09.20 09:47, Dr. Arne Babenhauserheide wrote: > Hi Zelphir, > > I see that you’re getting the full file as bytevector > > Zelphir Kaltstahl <zelphirkaltst...@posteo.de> writes: >> https://notabug.org/ZelphirKaltstahl/guile-examples/src/65ba7cead2983f1ceb8aa2d4eedfe37734e5ca56/web-development/example-03-serve-static-assets > I see that you’re getting the full file as bytevector in response-utils. > When I tested this in wispserve with multi-gigabyte files, I got > gc-errors. > > I do string-conversion, though, because I got into problems with just > putting a bytevector — does avoiding that avoid the problem? > > https://hg.sr.ht/~arnebab/wispserve/browse/wispserve/serve.w?rev=4541f36df0b0#L411 > > Best wishes, > Arne -- repositories: https://notabug.org/ZelphirKaltstahl