hank-whu / turbo-rpc Goto Github PK
View Code? Open in Web Editor NEWturbo is a super fast reactive rpc framework
License: Apache License 2.0
turbo is a super fast reactive rpc framework
License: Apache License 2.0
如果仅仅是java,就太局限了
建议zero-copy和byte[]两种方式共存, 在大整数较多的情况下writeVarint/readVarint不一定占优势
另外调用unsafe.getXXX/setXXX次数在超过一定阈值后效果可能不如一次memorycopy+byte[]纯数组读写好
现在的文档说明太有限了,很多东西只能通过阅读源码来找到其具体作用
建议使用jdk7或8,现在9的普及貌似在大部分公司还没有体现
没有测试用例,大多mian方法测试本类,看起来有些不方便
ERROR: transport error 202: connect failed: Connection refused
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [debugInit.c:730]
<forked VM failed with exit code 2>
ERROR: transport error 202: connect failed: Connection refused
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [debugInit.c:730]
ConcurrentArrayList中的add方法没看懂
`public void add(T value) {
final int index = insertIndex();
for (;;) {// like cas
final Object[] before = values;
before[index] = value;
final Object[] after = values;
if (before == after) {
return;
}
}
}
`
跟cas的相同点没看出来。
如题。
能提供一些例子不,希望能跑个测试学习一下
@hank-whu 你好,请问你的jdk版本是多少?我的是jdk1.8的,为什么导入后这两个会报错呢?
请问 RPC Benchmark Round 1 是否有在测试 参数数据量大的情况下的表现,例如6mb的文本。
据说 dubbo 在使用 dubbo 协议下, 大文件表现不佳。。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.