placeholder

Curious lack of sprintf scaling · Aras' website

Curious lack of sprintf scaling Posted on Feb 25, 2022 #code Some days ago I noticed that on a Mac, doing snprintf calls from multiple threads shows curious lack of scaling (see tweet). Replacing snprintf with {fmt} library can speed up the OBJ exporter in Blender 3.2 by 3-4 times. This could have b...

Click to view the original at aras-p.info

Hasnain says:

Great technical read. And, as always, I wholeheartedly recommend {fmt}

“Would you have expected a “turn an integer into a string” routine to be loading resource file information blocks from some library, for each and every call? Yeah, me neither.

Technically, there are no bugs anywhere above - all the functions work correctly, as far as standard is concerned. But some of them have interesting (lack of) multi-core scaling behavior, some others have just regular performance overheads compared to others, etc.”

Posted on 2022-02-26T05:57:22+0000