hencejacki / mixedwebserver Goto Github PK
View Code? Open in Web Editor NEWA tiny web server mixed with some advantages other excellent project includes.
License: Apache License 2.0
A tiny web server mixed with some advantages other excellent project includes.
License: Apache License 2.0
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.
It likely be related to or some memory leak.
By implementing this, the concrete handling of events in 'epoll.cpp' will be abstracted into a more hierarchical structure.
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.)
as you see, clang-format
, clang-tidy
, cpplint
want to be used into project.
There is a issue when i want to delete a channel, that is the file descriptor has been closed but it doesn't be removed from epoll tree.
Concretely, using thread_local
keyword to demonstrate the std::regex<regular expression>
object, but i not sure this method if solve this problem totally.
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.