diff options
author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2014-10-05 07:58:05 +0000 |
---|---|---|
committer | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2014-10-05 07:58:05 +0000 |
commit | 89f2f00da45dd213890a7f38247399b5b8a3eb78 (patch) | |
tree | dbcdd41d25458fa578078b8c7865eaef6b0fe86c /tests/allocator.cpp | |
parent | 5239fcbd0030ce7dcca1ee05dab0e8be3a98a288 (diff) |
XPath: Store string length inside string object
When xpath_string is heap-allocated we always know the length of the
string at some point - it is now stored in the object. This reduces
redundant string length calculations and makes string_value() much faster
in case it has to concatenate strings.
git-svn-id: https://pugixml.googlecode.com/svn/trunk@1053 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests/allocator.cpp')
0 files changed, 0 insertions, 0 deletions