[Issue 18388] std.experimental.logger slow performance

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Sep 6 19:06:20 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=18388

--- Comment #6 from Arun Chandrasekaran <aruncxy at gmail.com> ---
> The benchmark becomes single threaded around three times for each line printed.

How is it a benchmark issue? I agree that three API for a single log line is
expensive. Isn't that a problem with std.experimental.logger?

I also see that a flush after every line is causing the slowdown as well.
Probably do a flush only when the message level is fatal/error/warn and also
during termination?

--


More information about the Digitalmars-d-bugs mailing list