We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, there are several Stack Overflow questions regarding performance issues when creating large arrays of basic types. For example, in this question (https://stackoverflow.com/questions/74609901/how-create-a-big-array-in-shared-memory-with-boostinterprocessmanaged-shard), the poster also experienced this problem. After profiling the code, I noticed that the root cause of the problem seems to be in this section (
interprocess/include/boost/interprocess/detail/named_proxy.hpp
Lines 67 to 76 in 55ad499
Is it possible to write code to handle cases where the array is composed of basic types, and then initialize it using memset?
#include <boost/interprocess/managed_shared_memory.hpp> namespace bip = boost::interprocess; int main() { auto id_ = "shmTest"; size_t size_ = 2ul << 30; bip::shared_memory_object::remove(id_); bip::managed_shared_memory sm(bip::create_only, id_, size_ + 1024); auto data_ = sm.construct<char>("Data")[size_]('\0'); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi, there are several Stack Overflow questions regarding performance issues when creating large arrays of basic types. For example, in this question (https://stackoverflow.com/questions/74609901/how-create-a-big-array-in-shared-memory-with-boostinterprocessmanaged-shard), the poster also experienced this problem. After profiling the code, I noticed that the root cause of the problem seems to be in this section (
interprocess/include/boost/interprocess/detail/named_proxy.hpp
Lines 67 to 76 in 55ad499
Is it possible to write code to handle cases where the array is composed of basic types, and then initialize it using memset?
To reproduce
The text was updated successfully, but these errors were encountered: