diff options
| author | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | 2015-10-03 10:57:31 +0900 |
|---|---|---|
| committer | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | 2015-10-03 10:57:31 +0900 |
| commit | 675ecf36bf43f8743705af7d12dbc3d315462a06 (patch) | |
| tree | 5384aafe017644cc202fbec6b22b4c74b29248be | |
| parent | 70490977113762fde74c88116a086422e7bc9213 (diff) | |
| download | platform_build_kati-675ecf36bf43f8743705af7d12dbc3d315462a06.tar.gz platform_build_kati-675ecf36bf43f8743705af7d12dbc3d315462a06.tar.bz2 platform_build_kati-675ecf36bf43f8743705af7d12dbc3d315462a06.zip | |
[C++] Speed up set<Symbol> by using integer value of Symbol
| -rw-r--r-- | symtab.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -67,7 +67,7 @@ inline bool operator==(const Symbol& x, const Symbol& y) { } inline bool operator<(const Symbol& x, const Symbol& y) { - return x.str() < y.str(); + return x.val() < y.val(); } namespace std { |
