Performance: Replace string by special single-copy YulString class.

This commit is contained in:
chriseth
2018-11-07 19:30:27 +01:00
parent 0a96f091ab
commit 674e17c2a8
59 changed files with 351 additions and 243 deletions
+2 -4
View File
@@ -22,8 +22,6 @@
#include <libyul/optimiser/ASTWalker.h>
#include <string>
#include <map>
#include <set>
namespace dev
@@ -49,11 +47,11 @@ public:
using ASTWalker::visit;
bool movable() const { return m_movable; }
std::set<std::string> const& referencedVariables() const { return m_variableReferences; }
std::set<YulString> const& referencedVariables() const { return m_variableReferences; }
private:
/// Which variables the current expression references.
std::set<std::string> m_variableReferences;
std::set<YulString> m_variableReferences;
/// Is the current expression movable or not.
bool m_movable = true;
};