From b7ffdbbb929f9f07780a236659d1d1baf68ef137 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 13 Feb 2015 15:20:25 +0100 Subject: [PATCH] Optimize node dumper For very deeply nested node trees this extra concatenation makes a huge difference... --- lib/PhpParser/NodeDumper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/PhpParser/NodeDumper.php b/lib/PhpParser/NodeDumper.php index 3f62f1e..b859ded 100644 --- a/lib/PhpParser/NodeDumper.php +++ b/lib/PhpParser/NodeDumper.php @@ -36,6 +36,6 @@ class NodeDumper } } - return $r . "\n" . ')'; + return $r . "\n)"; } -} \ No newline at end of file +}