Code Monkey home page Code Monkey logo

code-with-comments's Introduction

Code With Comments

Tinyhttpd

介绍:tinyhttpd 是一个不到 500 行的超轻量型 Http Server,非常适合学习服务器工作原理

源码分析:在此

链接:tinyhttpd

MemoryPool

介绍:一个用 C++ 实现的简单内存池

源码分析:在此

链接:MemoryPool(98 版本)

Webbench

介绍:Webbench是一个在linux下使用的非常简单的网站压测工具。它使用fork()模拟多个客户端同时访问我们设定的URL, 测试网站在压力下工作的性能,最多可以模拟3万个并发连接去测试网站的负载能力。

源码分析:在此

链接:webbench

Threadpool

介绍:基于 pthread 实现的简单线程池

源码分析:在此

链接:Threadpool

Leveldb

介绍:Jeff Dean 和 Sanjay Ghemawat 两位超级大神实现的高效 kv 数据库。

源码分析:

以上是我觉得分析得最好的两篇。不过随着 leveldb 项目的推进,有些代码也发生了变动。我进行注释的源码是最新的 1.18 版本,结合两篇解析写自己的理解,目前已阅读的是主要流程,水平有限,有些地方也不甚清楚,欢迎交流。

链接:Leveldb



有帮助?给我个小红包吧

code-with-comments's People

Contributors

angryhacker avatar

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.