The massif command line parameters are in the images below. It broadly agrees with the results from the Debian docker image result.Įdit 4: Based on another comment below, I ran the example under valgrind's massif tool. The graph below shows the results.Įdit 3: I have added the results from running on a Linux CentOS machine. I reduced the number of threads to 8 and the number of tasks to 10 in the example. Now, the handle_post function just allocates and sets memory for 500K ints which is approximately 2MiB. Įdit 2: Based on a comment below regarding STL allocators, I removed the map from MWE by replacing the handle_post function with the following and adding the includes #include and #include. Virtual void enqueue(std::function fn) = 0 Įxplicit ThreadPool(size_t n) : shutdown_(false). This->ReplyMessage(request, status_codes::BadRequest, json::value::string(msg)) Ret = request.body().read(fileStream->streambuf(), this->READ_CHUNK).get() Īuto streamBuffer = fileStream->streambuf() Īuto msg = U("Unsupported file has been sent! Expected an image file such as a JPEG, PNG, OR BMP") Concurrency::streams::ostream outFile = Concurrency::streams::fstream::open_ostream(tmpFileName).get()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |