c0x0o / libndsl Goto Github PK
View Code? Open in Web Editor NEWa base infrastructure for Network and Distributed System Labo, UESTC.
License: MIT License
a base infrastructure for Network and Distributed System Labo, UESTC.
License: MIT License
下列特性按优先级排列:
以下优化按优先级排列:
目前TCP模块在小报文的传输性能上不尽如人意。以ping-pong
服务为例,由于引入了协程来帮助处理收发工作,协程的换出、唤醒,唤醒条件判断,EventLoop
对协程的调度等操作都将以降低网络性能为代价。虽然我个人认为这种开销是提供更高级别代码抽象所必需的,但我们仍然需要使整个框架的性能尽可能接近原生网络操作。
为了解决上述问题,提出了以下几个思路:
EventLoop
对象中添加WaitQueue,当一个Service
通过pollable
对象或其它通知机制由STATUS_HUNG
状态变为STATUS_READY
时,将自己加入到该WaitQueue中。该优化应该可以显著减少EventLoop
在轮询Service
对象时产生的开销(尤其是在Service
对象数量较大且活跃度不高的情况下)。(已完成,但是在大量连接活跃的情况下效果一般)TCPConnection
中HandleRead
和HandleWrite
的逻辑,减少不必要的循环(次要)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.