Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2017-08-03 08:53:18 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-08-03 09:07:06 +0300
commit0d01cf4488b9b484de60a687f0e781e789962422 (patch)
tree13a983b964987f5948412018029c4805ab14988c /tests
parentc6c49d90dc6856f978e15d80673c6211dcba6fd9 (diff)
Cycles: Extra tweaks to performance of header expansion
Two main things here: 1. Replace all unsafe for #line directive characters into a single loop, avoiding multiple iterations and multiple temporary strings created. 2. Don't merge token char by char but calculate start and end point and then copy all substring at once. This gives about 15% speedup of source processing time. At this point (with all previous commits from today) we've shrinked down compiled sources size from 108 MB down to ~5.5 MB and lowered processing time from 4.5 sec down to 0.047 sec on my laptop running Linux (this was a constant time which Blender will always spent first time loading kernel, even if we've got compiled clbin).
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions