diff options
author | Kenneth Graunke <[email protected]> | 2012-02-09 20:33:44 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2012-02-28 13:07:12 -0800 |
commit | b823b99ec0f13af257dcd885f436a4d294c6222a (patch) | |
tree | a14501441c082303589b10821ca56c9554c57dc1 /src/glsl/ir_validate.cpp | |
parent | 8292b7419d0405e94a5ea270ba710d20f0eb071f (diff) |
glcpp: Don't strlen() the output for every token being printed.
The ralloc string appending functions were originally intended for
simple, non-hot-path uses like printing to an info log.
Cuts Unigine Tropics load time by around 20% (6 seconds).
v2: Avoid strlen() on every newline, too.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Ian Romanick <[email protected]> [v1]
Acked-by: José Fonseca <[email protected]> [v1]
Diffstat (limited to 'src/glsl/ir_validate.cpp')
0 files changed, 0 insertions, 0 deletions