mirror of
https://github.com/nikic/PHP-Parser.git
synced 2025-07-27 17:30:29 +02:00
Represent names using string rather than array of parts
In most circumstances we are interested in the whole string, not the parts split by namespace separator. As names are common, this representation measurably improves memory usage and performance.
This commit is contained in:
@@ -26,9 +26,7 @@ array(
|
||||
expr: Expr_Variable(
|
||||
name: Expr_FuncCall(
|
||||
name: Name(
|
||||
parts: array(
|
||||
0: foo
|
||||
)
|
||||
name: foo
|
||||
)
|
||||
args: array(
|
||||
)
|
||||
|
Reference in New Issue
Block a user