[Haskell-cafe] Speeding up trivial programs

amindfv at mailbox.org amindfv at mailbox.org
Fri Aug 23 20:02:11 UTC 2024


On Fri, Aug 23, 2024 at 03:19:28PM -0400, Brandon Allbery wrote:
> I think I'd be reconsidering _any_ design involving running an external
> program many times like that, to be honest. Dragging in potential fork
> delays and other overhead that a benchmark probably won't show you doesn't
> appeal.

Calling short-lived unix processes many times (note I didn't say where or when) might not be the right solution to most problems. (That's probably why I've never noticed this timing floor before.) But trust me, it is a real -- and actually sensible in context -- requirement here.

Server/client communication is unfortunately not possible in this case. Rewriting entirely in a language other than Haskell is possible, but not what I'd prefer given that the code is fairly complex (if fast).

Does anybody know more about what specifically is happening during these 150ms?

Thanks,
Tom


More information about the Haskell-Cafe mailing list