Giter Site home page Giter Site logo

mixedwebserver's People

Contributors

hencejacki avatar

Watchers

 avatar

mixedwebserver's Issues

IOT instruction (core dumped)

I encountered this problem when test web server with multiple thread.

Details of core dump as below:

  • System: ArchLinux
  • gcc version: 13.1.1

ENHANCE: implement Timer based on timeline

it will have two core file:

  • Timer.h: just like TimerNode in original implementation, mainly used to storage meta info.
  • TimerManage.h: organize TimerNode by using std::multimap which is sorted, just like two-direction node list in original implementation.

Timer also has another implementation: combine child thread and sleep, but it have a fatal disadvantage that is each Timer instance created, each thread will be spawned. this maybe cause more occupation of resources.

TODO: cutsom listen events

By implementing this, the concrete handling of events in 'epoll.cpp' will be abstracted into a more hierarchical structure.

TODO: use std::string_view to optimize performance of the program

std::string_view only record the offset and pointer of a string, it is faster than std::string, because std::string always make a copy of a string(perhaps the reference of std::string is ok, i not sure about it,you can compare them and select the fastest one.)

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.