function
function
Explore posts from servers
DDeno
Created by function on 10/11/2024 in #help
Deno.serve() + sharp + streams
anyway, thank you for your input
34 replies
DDeno
Created by function on 10/11/2024 in #help
Deno.serve() + sharp + streams
one solution that i can see is if sharp could output a ReadableStream right away
34 replies
DDeno
Created by function on 10/11/2024 in #help
Deno.serve() + sharp + streams
i guess toWeb being slow (and maybe broken?) is on node
34 replies
DDeno
Created by function on 10/11/2024 in #help
Deno.serve() + sharp + streams
i'm not sure which side - deno or sharp - can improve in this combination
34 replies
DDeno
Created by function on 10/11/2024 in #help
Deno.serve() + sharp + streams
just for reference
34 replies
DDeno
Created by function on 10/11/2024 in #help
Deno.serve() + sharp + streams
34 replies
DDeno
Created by function on 10/11/2024 in #help
Deno.serve() + sharp + streams
i have an issue of type question open on the sharp github to maybe figure something out
34 replies
DDeno
Created by function on 10/11/2024 in #help
Deno.serve() + sharp + streams
that method was added in node v17 but is still experimental
34 replies
DDeno
Created by function on 10/11/2024 in #help
Deno.serve() + sharp + streams
node has Readable.toWeb() which is supposed to do exactly what i need but is like 3x slower than any other method and also broken for me (image get served but is blank)
34 replies
DDeno
Created by function on 10/11/2024 in #help
Deno.serve() + sharp + streams
i can only explain this difference with the stream conversion
34 replies
DDeno
Created by function on 10/11/2024 in #help
Deno.serve() + sharp + streams
which are native bindings, so the processing should always take the same time
34 replies
DDeno
Created by function on 10/11/2024 in #help
Deno.serve() + sharp + streams
same sharp settings
34 replies
DDeno
Created by function on 10/11/2024 in #help
Deno.serve() + sharp + streams
slower as in 900ms with node vs 920ms with deno on average (localhost)
34 replies
DDeno
Created by function on 10/11/2024 in #help
Deno.serve() + sharp + streams
i have not tried running the node code with deno, but i'd love to use the deno stdlib instead of node http module
34 replies
DDeno
Created by function on 10/11/2024 in #help
Deno.serve() + sharp + streams
so basically i can't get deno to be any faster than node
34 replies
DDeno
Created by function on 10/11/2024 in #help
Deno.serve() + sharp + streams
that is with a large 20MB input image file and large output (convert to lossless webp)
34 replies
DDeno
Created by function on 10/11/2024 in #help
Deno.serve() + sharp + streams
that's pretty much exactly one of the solutions i also came up with, but it's slightly slower than http.createServer (running with node) + sharpObject.pipe(res)
34 replies
DDeno
Created by function on 10/11/2024 in #help
Deno.serve() + sharp + streams
Deno.serve only supports web standard ReadableStream and not Nodejs streams
34 replies
DDeno
Created by function on 10/11/2024 in #help
Deno.serve() + sharp + streams
(it's a Duplex to be more accurate)
34 replies
DDeno
Created by function on 10/11/2024 in #help
Deno.serve() + sharp + streams
i need a ReadableStream, not a Nodejs Readable which the sharp object is
34 replies