-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Speed up ObjectHandle.close() #516
Comments
Do you experience any performance issues due to this method? |
Hi Eugen, since PR #510, #511, #512, #514 and #515 limited a number of created objects so the number of vector<long int> vc(1);
for(size_t i = 0; i < 100000; i++) {
vc[0] = static_cast<long int>(std::rand());
dataset.resize({i + 1});
selection.offset(0, i);
dataset.write(vc, selection);
} the |
ok. I see. This are about 10% of the overall runtime. You are absolutely right one should deal with this. |
One more think which can be speed-up is
ObjectHandle.close()
which is called quite often. It can be done by avoiding calls toH5Iget_type
and storing the object type in the class instance variable. It is unlikely that the type of the object has been changed.The text was updated successfully, but these errors were encountered: