FBX Import: Read known sequential bytes simultaneously #104823

Merged
Bastien Montagne merged 1 commits from Mysteryem/blender-addons:parse_sequential_bytes_pr into main 2023-08-08 17:00:36 +02:00

1 Commits

Author SHA1 Message Date
51c0bc94ef FBX Import: Read known sequential bytes simultaneously
The start of each element and the start of each array property have a
consistent series of values with fixed sizes. Reading these series of
values with a single read call and single unpack call is slightly faster
than reading them individually.

This reduces the time taken to parse fbx files to about 90% to 95% of
the original time. Array decompression makes up about half of the time
taken currently, but this could be multithreaded, in which case, this
patch would reduce the time to about 80% to 90% instead.
2023-08-06 17:59:10 +01:00