Giter VIP home page Giter VIP logo

libndsl's People

Contributors

c0x0o avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

libndsl's Issues

RoadMap

libndsl RoadMap

Features

下列特性按优先级排列:

  • 添加框架级多线程特性,可以Service(比如Coroutine)可以附着在任意线程的EventLoop上
  • 支持MicroTask
  • 添加Service间的通信机制
  • 添加框架级Signal特性
  • 支持UDP
  • 支持x86架构
  • 支持SSL
  • 支持arm架构
  • 支持RDMA网络

Enhancement

以下优化按优先级排列:

  • 优化小报文场景下的性能

TCP网络性能优化思路

目前TCP模块在小报文的传输性能上不尽如人意。以ping-pong服务为例,由于引入了协程来帮助处理收发工作,协程的换出、唤醒,唤醒条件判断,EventLoop对协程的调度等操作都将以降低网络性能为代价。虽然我个人认为这种开销是提供更高级别代码抽象所必需的,但我们仍然需要使整个框架的性能尽可能接近原生网络操作。

为了解决上述问题,提出了以下几个思路:

  1. EventLoop对象中添加WaitQueue,当一个Service通过pollable对象或其它通知机制由STATUS_HUNG状态变为STATUS_READY时,将自己加入到该WaitQueue中。该优化应该可以显著减少EventLoop在轮询Service对象时产生的开销(尤其是在Service对象数量较大且活跃度不高的情况下)。(已完成,但是在大量连接活跃的情况下效果一般)
  2. 优化TCPConnectionHandleReadHandleWrite的逻辑,减少不必要的循环(次要)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.