<div dir="ltr">Hi.<div><br></div><div>I've met again performance problem with io_lib:format.</div><div><br></div><div><div>iso8601({{Y,Mo,D}, {H,Mn,S}}) -></div><div>  FmtStr = "~4.10.0B-~2.10.0B-~2.10.0BT~2.10.0B:~2.10.0B:~2.10.0BZ",</div><div>  IsoStr = io_lib:format(FmtStr, [Y, Mo, D, H, Mn, S]),</div><div>  list_to_binary(IsoStr).  </div></div><div><br></div><div><br></div><div>Such code is a 0,01% of business logic of one small part of flussonic, but it takes about 95% of time to make 10% of text output.</div><div><br></div><div><br></div><div>I've solved this problem via <a href="https://github.com/maxlapshin/io_libc">https://github.com/maxlapshin/io_libc</a>  but I'm not sure that it is</div><div>a best way to do.  Maybe this is better solved in pure erlang?</div><div><br></div><div><br></div><div>Perhaps I'm not alone with this problem and somebody has some better idea than just exposing fprinf via nif?</div></div>