I've been meaning to do just that for some time now but haven't gotten to it yet. Maison Bially also had talked about overhauling printf, on account of which I figured I'd wait and see what he came up with.
On Friday, January 8, 2016, 'Greg Plowman' via julia-users < [email protected]> wrote: > This is amazing! > It also speeds up my compilation time by more than x10. > I have a lot of @printf statements and this has changed my life :) > > What would be wrong with a macro something like: > macro fastprintf(args...) > :( f()=@printf $(args...); f() ) > end > > I did a comparision of 50 simple @printf statements: > @printf: 11.563024 seconds (6.29 M allocations: 274.179 MB, 2.47% gc > time) > @fastprintf: 0.709322 seconds (300.52 k allocations: 14.809 MB, 0.85% gc > time) > > > Why not update @printf macro to use this method directly? > >
