blender/release/license
Aras Pranckevicius e2e4c1daaa OBJ: use fmt library instead of sprintf for faster formatting
On Windows/MSVC this gives a minor (~20%) speedup presumably due to a faster float/int formatter. On macOS (Xcode13), this gives a massive speedup, since snprintf that is in system libraries ends up spending almost all the time inside some locale-related mutex lock.

The actual exporter code becomes quite a bit smaller too, since it does not have to do any juggling to support std::string arguments, and the buffer handling code is smaller as well.

Windows (VS2022 release build, Ryzen 5950X 32 threads) timings:
- Blender 3.0 splash scene (2.4GB obj): 4.57s -> 3.86s
- Monkey subdivided level 6 (330MB obj): 1.10s -> 0.99s

macOS (Xcode 13 release build, Apple M1Max) timings:
- Blender 3.0 splash scene (2.4GB obj): 21.03s -> 5.52s
- Monkey subdivided level 6 (330MB obj): 3.28s -> 1.20s

Linux (ThreadRipper 3960X 48 threads) timings:
- Blender 3.0 splash scene (2.4GB obj): 10.10s -> 4.40s
- Monkey subdivided level 6 (330MB obj): 2.16s -> 1.37s

The produced obj/mtl files are identical to before.

Reviewed By: Howard Trickey, Dalai Felinto

Differential Revision: https://developer.blender.org/D13998
2022-03-27 14:25:48 +03:00
..
Apache-2.0.txt
bfont.ttf.txt
bmonofont-i18n.ttf.txt
BSD-3-Clause.txt
BSL-1.0.txt ISC and Boost licenses 2020-09-24 12:49:36 +02:00
droidsans.ttf.txt
FTL.txt
GPL-3.0.txt
GPL-license.txt License: Rename GPL2 license to match the name specified in copyright.txt 2020-10-02 12:18:02 +02:00
jemalloc.txt
MIT.txt
OpenColorIO.txt
OpenSSL.txt
Python.txt
THIRD-PARTY-LICENSES.txt OBJ: use fmt library instead of sprintf for faster formatting 2022-03-27 14:25:48 +03:00