Skip to content

Instantly share code, notes, and snippets.

View hsalokor's full-sized avatar

Harri Salokorpi hsalokor

  • Reaktor Oy
  • Helsinki
View GitHub Profile
@hsalokor
hsalokor / with_patch.csv
Created January 22, 2015 15:24
Effect of PRNG initialization path
Running Time Self Symbol Name
24.0ms 0.2% 0 void* std::__1::__thread_proxy<std::__1::tuple<void 0x30b499
23.0ms 0.2% 0 Main Thread 0x30b0b1
22.0ms 0.2% 0 void* std::__1::__thread_proxy<std::__1::tuple<void 0x30b3c2
22.0ms 0.2% 0 void* std::__1::__thread_proxy<std::__1::tuple<void 0x30b2c9
21.0ms 0.1% 0 void* std::__1::__thread_proxy<std::__1::tuple<void 0x30b2e8
21.0ms 0.1% 0 void* std::__1::__thread_proxy<std::__1::tuple<void 0x30b277
21.0ms 0.1% 0 void* std::__1::__thread_proxy<std::__1::tuple<void 0x30b35c
21.0ms 0.1% 0 void* std::__1::__thread_proxy<std::__1::tuple<void 0x30b2b6
20.0ms 0.1% 0 void* std::__1::__thread_proxy<std::__1::tuple<void 0x30b27c

Keybase proof

I hereby claim:

  • I am hsalokor on github.
  • I am hsalokor (https://keybase.io/hsalokor) on keybase.
  • I have a public key whose fingerprint is CCAF FCFF E2EE 7C4A 7E04 4E0F 6A4C 8278 9C41 FC7D

To claim this, I am signing this object:

@hsalokor
hsalokor / connection.cpp
Created April 16, 2014 23:16
Better buffer handling
#include "connection.h"
hwo_connection::hwo_connection(const std::string& host, const std::string& port)
: socket(io_service)
{
tcp::resolver resolver(io_service);
tcp::resolver::query query(host, port);
boost::asio::connect(socket, resolver.resolve(query));
response_buf.prepare(8192);
}