diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2020-05-19 15:37:40 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-19 15:37:40 -0400 |
| commit | c54c957d2e647d2f9bfdc0bf31561fca5a02c5df (patch) | |
| tree | 8b54c10f40a005fdac0d9837254c430a837a0a3f /tools/slang-profile | |
| parent | 1de14312917a0427a7a0858615b65261da60f748 (diff) | |
Reduce the size of Token (#1349)
* Token size on 64 bits is 24 bytes (from 40). On 32 bits is 16 bytes from 24.
* Added hasContent method to Token.
Some other small improvements around Token.
Diffstat (limited to 'tools/slang-profile')
| -rw-r--r-- | tools/slang-profile/slang-profile-main.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/slang-profile/slang-profile-main.cpp b/tools/slang-profile/slang-profile-main.cpp index 19fb36604..2bc97548f 100644 --- a/tools/slang-profile/slang-profile-main.cpp +++ b/tools/slang-profile/slang-profile-main.cpp @@ -19,8 +19,11 @@ SlangResult innerMain(int argc, char** argv) { const auto startTick = ProcessUtil::getClockTick(); - ComPtr<slang::IGlobalSession> slangSession; - slangSession.attach(spCreateSession(nullptr)); + for (Int i = 0; i < 32; ++i) + { + ComPtr<slang::IGlobalSession> slangSession; + slangSession.attach(spCreateSession(nullptr)); + } const auto endTick = ProcessUtil::getClockTick(); |
