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

This commit is contained in:
Kamil Śliwak committed 2020-05-20 16:47:23 +02:00
1 parent bff012c76d
commit 1fa689e951
3 files changed
+31 -6

No files matched your search

+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;
}