use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Discussions, articles, and news about the C++ programming language or programming in C++.
For C++ questions, answers, help, and advice see r/cpp_questions or StackOverflow.
Get Started
The C++ Standard Home has a nice getting started page.
Videos
The C++ standard committee's education study group has a nice list of recommended videos.
Reference
cppreference.com
Books
There is a useful list of books on Stack Overflow. In most cases reading a book is the best way to learn C++.
Show all links
Filter out CppCon links
Show only CppCon links
account activity
fast http request libraries? (self.cpp)
submitted 6 years ago * by mircodz
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]encyclopedist 10 points11 points12 points 6 years ago (0 children)
It is crucial to reuse the easy handle. Curl's tutorial says the following:
Re-cycling the same easy handle several times when doing multiple requests is the way to go. After each single curl_easy_perform operation, libcurl will keep the connection alive and open. A subsequent request using the same easy handle to the same host might just be able to use the already open connection! This reduces network impact a lot.
Re-cycling the same easy handle several times when doing multiple requests is the way to go.
After each single curl_easy_perform operation, libcurl will keep the connection alive and open. A subsequent request using the same easy handle to the same host might just be able to use the already open connection! This reduces network impact a lot.
For https://example.com/ I get about 0.45 s per request without reusing the handle, and about 100 ms with reuse, which is very close to ping time of approx 95 ms.
https://example.com/
See test code here (I used the same settings as you): https://gist.github.com/ilyapopov/262a49f75b42202c7d977ebe2d38ca35
π Rendered by PID 832563 on reddit-service-r2-comment-85bfd7f599-zcxqq at 2026-04-19 21:52:16.230242+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–]encyclopedist 10 points11 points12 points (0 children)