@@ -218,6 +218,9 @@ To change compiler to clang, overwrite environment variable CC and CXX to clang
To not link debugging symbols, use `cmake -DWITH_DEBUG_SYMBOLS=OFF ..` and compiled binaries will be much smaller.
## MacOS
Note: In the same running environment, the performance of the current Mac version is about 2.5 times worse than the Linux version. If your service is performance-critical, do not use MacOS as your production environment.
@@ -22,7 +22,7 @@ brpc is designed to add new protocols at any time, just proceed as follows:
Add new protocol type in ProtocolType in [options.proto](https://github.com/brpc/brpc/blob/master/src/brpc/options.proto). If you need to add new protocol, please contact us to add it for you to make sure there is no conflict with protocols of others.
Currently we support in ProtocolType(at the end of 2016):
Currently we support in ProtocolType(at the middle of 2018):
```c++
enumProtocolType{
PROTOCOL_UNKNOWN=0;
...
...
@@ -48,6 +48,10 @@ enum ProtocolType {
PROTOCOL_DISP_IDL=20;// Client side only
PROTOCOL_ERSDA_CLIENT=21;// Client side only
PROTOCOL_UBRPC_MCPACK2=22;// Client side only
// Reserve special protocol for cds-agent, which depends on FIFO right now
system("pkill memcached; mkdir -p memcached_for_test && cd memcached_for_test && svn co https://svn.baidu.com/third-64/tags/memcached/memcached_1-4-15-100_PD_BL/bin");
if(system("mkdir -p memcached_for_test && cd memcached_for_test && svn co https://svn.baidu.com/third-64/tags/memcached/memcached_1-4-15-100_PD_BL/bin")!=0){
system("pkill redis-server; mkdir -p redis_server_for_test && cd redis_server_for_test && svn co https://svn.baidu.com/third-64/tags/redis/redis_2-6-14-100_PD_BL/bin");
if(system("mkdir -p redis_server_for_test && cd redis_server_for_test && svn co https://svn.baidu.com/third-64/tags/redis/redis_2-6-14-100_PD_BL/bin")!=0){