diff options
author | Kenneth Graunke <[email protected]> | 2010-08-18 18:03:22 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2010-08-18 21:33:18 -0700 |
commit | 365ce61997a28a0c0dad79e7d3f7616e57f105f5 (patch) | |
tree | 78305e51c626e153393a999261d44077ef0feb87 /src/glsl/s_expression.h | |
parent | a575067d7029c7af3bb6d650d6bd944ac8bb6bb7 (diff) |
glsl: Replace sscanf in s_expression reader with strspn and strcspn.
This seems to give roughly a 20% speedup.
Diffstat (limited to 'src/glsl/s_expression.h')
-rw-r--r-- | src/glsl/s_expression.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/s_expression.h b/src/glsl/s_expression.h index 1a0c03c2189..aa22475a1bf 100644 --- a/src/glsl/s_expression.h +++ b/src/glsl/s_expression.h @@ -113,7 +113,7 @@ private: class s_symbol : public s_expression { public: - s_symbol(const char *); + s_symbol(const char *, size_t); bool is_symbol() const { return true; } |