Skip to content

Commit 621e9bf

Browse files
committed
meta/tclass: reduce memory use of test
1 parent 05f351e commit 621e9bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

root/meta/tclass/tclassStl.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ void write_vector(int n = 10)
1616
for (int i = 0; i < n; ++i) {
1717
cl->Property(); // Force a call at each iteration to increase reproducibility of race.
1818
cl->Streamer(&vec, buf);
19+
buf.Reset();
1920
}
2021
// std::cout << "Thread done\n";
2122
}
@@ -27,7 +28,7 @@ void tclassStlImpl(int repeat = 10, int nThreads = 100, int internalRepeat = 10,
2728
for (auto &inner : vec) {
2829
inner.resize(nElem);
2930
for (auto &vp : inner)
30-
vp.resize(nElem);
31+
vp.resize(nElem / 10);
3132
}
3233

3334
for (int r = 0; r < repeat; ++r) {

0 commit comments

Comments
 (0)