[yul-phaser] ProgramCache::calculateTotalCachedCodeSize(): Replace default weights with ones that better correlate with memory usage

This commit is contained in:
Kamil Śliwak
2020-05-20 16:47:23 +02:00
parent bff012c76d
commit 1fa689e951
3 changed files with 31 additions and 6 deletions
+1 -1
View File
@@ -135,7 +135,7 @@ size_t ProgramCache::calculateTotalCachedCodeSize() const
{
size_t size = 0;
for (auto const& pair: m_entries)
size += pair.second.program.codeSize(CodeWeights{});
size += pair.second.program.codeSize(CacheStats::StorageWeights);
return size;
}