Skip to content

Commit

Permalink
adding comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lemire committed Sep 28, 2016
1 parent be40dab commit 9a164f2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion 2016/09/15/stlsizeof.cpp
Expand Up @@ -144,5 +144,8 @@ int main() {
treeset t;
for(uint32_t k = 0; k < N; k++) t.insert(k);
std::cout << "memory usage per element of a set<uint32_t> : " << getMemUsageInBytes() * 1.0 / N << std::endl;


std::cout << "Comments : " << std::endl;
std::cout << "This is an optimistic estimate: the overhead of the data structure and the allocations is ignored." << std::endl;
std::cout << "Because the per-value overhead might be fixed, the results might be less dramatic with larger elements, such as long strings." << std::endl;
}

0 comments on commit 9a164f2

Please sign in to comment.