~raof/mir/symbols-file

« back to all changes in this revision

Viewing changes to src/server/frontend/socket_session.cpp

  • Committer: Tarmac
  • Author(s): Alan Griffiths
  • Date: 2013-07-11 04:31:40 UTC
  • mfrom: (831.1.5 mir2)
  • Revision ID: tarmac-20130711043140-6f5cuqm8b1bj407t
frontend: cut down memory allocations by pre-allocating and reusing buffers.

Approved by Robert Ancell, Kevin DuBois, Robert Carr, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include <sys/types.h>
23
23
#include <sys/socket.h>
24
24
 
 
25
#include "mir/frontend/client_constants.h"
 
26
 
25
27
namespace ba = boost::asio;
26
28
namespace bs = boost::system;
27
29
 
36
38
    connected_sessions(connected_sessions),
37
39
    processor(std::make_shared<NullMessageProcessor>())
38
40
{
 
41
    whole_message.reserve(serialization_buffer_size);
39
42
}
40
43
 
41
44
mfd::SocketSession::~SocketSession() noexcept