Blender Git Loki
Git Commits -> Revision 0d01cf4
Revision 0d01cf4 by Sergey Sharybin (master) August 3, 2017, 06:07 (GMT) |
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). |
Commit Details:
Full Hash: 0d01cf4488b9b484de60a687f0e781e789962422
Parent Commit: c6c49d9
Lines Changed: +48, -12
1 Modified Path:
/intern/cycles/util/util_path.cpp (+48, -12) (Diff)