summaryrefslogtreecommitdiffstats
path: root/src/code.l
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2021-03-28 11:58:30 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2021-03-28 12:25:48 (GMT)
commitc48639744a6fa118b9851b307107994ba93ce4c8 (patch)
tree8917c567f8f00560fba4554ade2b7e79bbe3ff45 /src/code.l
parentcef71dc4fcfca9e3580214c39f20dc538ed6b2d9 (diff)
downloadDoxygen-c48639744a6fa118b9851b307107994ba93ce4c8.zip
Doxygen-c48639744a6fa118b9851b307107994ba93ce4c8.tar.gz
Doxygen-c48639744a6fa118b9851b307107994ba93ce4c8.tar.bz2
Refactoring: Add TextStream buffer to improve output writing performance
- direct use of std::stringstream and std::ostream gave a 30% drop in performance.
Diffstat (limited to 'src/code.l')
-rw-r--r--src/code.l3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/code.l b/src/code.l
index a0ace11..6632018 100644
--- a/src/code.l
+++ b/src/code.l
@@ -75,11 +75,10 @@
// context for an Objective-C method call
struct ObjCCallCtx
{
- ObjCCallCtx() : comment(std::ios_base::ate) {}
int id;
QCString methodName;
QCString objectTypeOrName;
- std::ostringstream comment;
+ TextStream comment;
const ClassDef *objectType;
const MemberDef *objectVar;
const MemberDef *method;