Skip to content

Commit

Permalink
Add snmalloc for proxy_server main.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackarain committed Jul 19, 2024
1 parent 3a8e74b commit 8e16c57
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions server/proxy_server/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,22 @@
#include <boost/program_options.hpp>
namespace po = boost::program_options;

#include <filesystem>
namespace fs = std::filesystem;

#include "proxy/proxy_server.hpp"
#include "proxy/socks_client.hpp"
#include "proxy/logging.hpp"

#include "proxy/use_awaitable.hpp"
#include "proxy/ipip.hpp"

#ifdef USE_SNMALLOC
# define NO_BOOTSTRAP_ALLOCATOR
# ifndef NDEBUG
# define NDEBUG
# endif
# include "src/snmalloc/override/new.cc"
#endif // USE_SNMALLOC


#include "main.hpp"

namespace net = boost::asio;
Expand Down

0 comments on commit 8e16c57

Please sign in to comment.