自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 资源 (38)
  • 收藏
  • 关注

转载 lex && yacc

http://www.linuxdiyf.com/viewarticle.php?id=91568作者:绚丽也尘埃最近看《GCC-the-Complete-Reference-fly》才知道有lex和yacc这两个有趣的工具,并且fedora core 8也默认安装有这两个工具,所以趁此机会学习一下,以前学编译原理时,知道有yacc这个名词,但是从来没有考虑过它是个什么

2012-05-30 16:02:54 1914

转载 mmap

http://kenby.iteye.com/blog/1164700共享内存可以说是最有用的进程间通信方式,也是最快的IPC形式, 因为进程可以直接读写内存,而不需要任何数据的拷贝。对于像管道和消息队列等通信方式,则需要在内核和用户空间进行四次的数据拷贝,而共享内存则只拷贝两次数据: 一次从输入文件到共享内存区,另一次从共享内存区到输出文件。实际上,进

2012-05-28 16:40:53 2644 2

转载 [zz]内存对齐

http://blog.sina.com.cn/s/blog_58649eb30100v2tc.html 主要讲2种内存对齐形式,分别对应不同的需求:1、#pragma pack(n): 常用来控制接口对齐形式(n=1)2、__declspec(align(n)):常用来组织结构体内部的对齐方式(算法中用)在上面讲到了关于pack的内存对齐和计算方法,这里继续讲

2012-05-24 07:51:29 860

转载 [zz] nginx 内存池

http://aiyooyoo.com/index.php/archives/491/   http://www.oschina.net/question/234345_42068  http://blog.chinaunix.net/uid-21878516-id-200376.html  http://blog.csdn.net/xt_xiaotian/

2012-05-24 07:28:19 679 1

转载 cpu cache 学习

http://www.51dzw.com/embed/embed_63834.html在2004年写的一篇文章x86汇编语言学习手记(1)中,曾经涉及到gcc编译的代码默认16字节栈对齐的问题。之所以这样做,主要是性能优化方面的考虑。  大多数现代cpu都one-die了l1和l2cache。对于l1 cache,大多是write though的;l2 cache则是write

2012-05-22 10:06:36 2387

转载 【zz】 现代CPU Cache结构 和 陈首席对CPU Cache的讲解

http://www.tektalk.org/2011/04/14/%e7%8e%b0%e4%bb%a3-cpu-%e4%b8%ad%e7%9a%84-cache-%e7%bb%93%e6%9e%84/0.缘起受首席启发,补充点 cache 背景。再乱弹一下 Page Coloring 1. 概述Cache 是用来对内存数据的缓存。CPU

2012-05-22 09:36:31 11221 1

转载 [zz]Linux Cache 机制

http://www.cnblogs.com/liloke/archive/2011/11/20/2255737.htmlLinux Cache 机制在阅读文章前,您应该具备基本的存储器层次结构知识,至少要了解局部性原理。要详细了解cache基本原理,可以参考本书《深入理解计算机系统》中存储器体系结构一章:  带着疑问来看文章,cache对于程序

2012-05-22 09:22:41 652

reliable rabbitmq c++ client

reliable reconnect rabbitmq-c client. basic get and publish. reconnect when fail

2018-07-16

trade server use evpp test

use callprogram sys to call other system. modify vlogger

2018-07-04

evpp so load system

load so and run. server listen, subprocess connect .

2018-07-02

trade middle ware

trade system. load so and run it. max qps 20000. server listen and send. subprocess connect and recv. should be placed on one machine. linux gcc 4.8

2018-06-29

packet parser

fast k_c_x_p client , fast k_c_b_p parser just for test

2018-06-12

nonblocking server

use murmurhash3 and http status print out delete logs

2018-06-11

nonblocking switch server

fix bugs when packets are too large. improve performance too

2018-06-07

simple exchange platform client

a simple exchange platform client, not used. experimental product

2018-06-01

nonblocking async transfer server

nonblocking using lock_free queue , evpp framework

2018-05-30

event_server

event server with high performance logger ,async write

2018-05-09

evpp based echo server

simple net framework , echo server use qihoo360 open source code evpp

2018-05-03

libevent echo server

libevent example. echo server. use c++11 gcc 4.8.5 thread_pool singleton , io thread , servant thread layer

2018-04-24

lua and acl example

lua call c++, c++ call lua, c++ call lua with lua call c++ so

2018-02-06

thrift with memfunc and uid generator

thrift with uid generator , 28bits wide uuid , 100 year does not be same

2018-01-30

pddl thrift AccessServer

p distributed database framework AccessServer is the wrapper

2018-01-23

thrift server support db operation and rest protocol

modified thrift server , support rest , http protocol with json content . support multi oracle db

2018-01-18

20180111 ieap

use TNonblockingServer framework. getsnap to see which func servant is running

2018-01-11

AnalyzeServer 20180109 with DBConnPool

thrift with DBConnPool using Pro*C ThriftClientPool mem_func logger

2018-01-09

thrift example

thrift server. use client connection pool. singleton conf , async logger and utility classes

2018-01-04

quick fix tester

use quick fix framework to test step protocol. an example for fun

2017-11-21

log file tailer

like linux tail -f command. tail file and format to another line

2017-11-21

exchange processor

middle ware for soft . exchange processer just a queue

2017-11-21

tdx market quotes getter

tdx market quotes caller, test which quote is faster

2017-11-21

Logic business module Tester

lbm caller exapmle use kcbpapi dll just for an test.

2017-11-21

BinaryRecorder

Binary protocol implemented。 just an example. async logger

2017-11-21

prpc_20181112

adding multi server and echo function to prpc framework

2018-11-12

prpc_20181109

using multi event loop in client api. using one channel all client stub share it.

2018-11-09

coroutine using phxrpc

coroutine example, using phxrpc coroutine framework, receive data from upstream and set redis, qps 12w

2018-11-01

transparent proxy

transparent proxy like haproxy. auto testing broken conn tps 300000

2018-09-29

soft like haproxy

hello world program just for test. using evpp for transparent proxy

2018-09-19

prpc rpc framework

modify memory leak bugs. and multithread client press case. 40 w qps

2018-08-28

remote procedure call using protobuffer

protobuffer server remote procedure call framework. using evpp and brpc library

2018-08-21

get class name c++

get class's name. include namespace. use abi damangle

2018-08-08

modp_base64

chrome's base64 encode and decode cpp classes. high performancy

2018-08-08

brpc doubly_buffered_data test

modify brpc library doubly_buffered_data class. test performancy. 100000000 test Get total : 16557607309 ns, avg 165 ns Set total : 21681584661 ns, avg 216 ns

2018-08-07

beanstalkd test client

beanstalkd test client. press test producer and consumer

2018-08-01

snappy library

libsnappy.so C++ library examples. it can work on cmake 2.8.12

2018-07-25

rabbitmq-c client publish get example

rabbitmq exapmles。 declare exchange and queue. the articles in baidu do not help, I have to write examples that can work. basic_publish and basic_tet

2018-07-13

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除