mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Performance: Replace string by special single-copy YulString class.
This commit is contained in:
@@ -95,10 +95,10 @@ void ExpressionSplitter::outlineExpression(Expression& _expr)
|
||||
visit(_expr);
|
||||
|
||||
SourceLocation location = locationOf(_expr);
|
||||
string var = m_nameDispenser.newName("");
|
||||
YulString var = m_nameDispenser.newName({});
|
||||
m_statementsToPrefix.emplace_back(VariableDeclaration{
|
||||
location,
|
||||
{{TypedName{location, var, ""}}},
|
||||
{{TypedName{location, var, {}}}},
|
||||
make_shared<Expression>(std::move(_expr))
|
||||
});
|
||||
_expr = Identifier{location, var};
|
||||
|
||||
Reference in New Issue
Block a user