Comments (4)
The HTTP parser does a bunch of things that you shouldn't do if you care about performance. A large number of which are in the Pony Performance Cheatsheet as "don't do's".
That's where you would want to start.
The existing parser uses error
has control flow. Definitely not good for performance.
from http.
It also uses buffered.Reader to parse http payloads spanning > 1 tcp packet. In this process it copies all the bytes of the payload. I already have a few ideas on how to tackle those problems.
from http.
you're welcome @toyoaki-k
from http.
@SeanTAllen
Thank you for teaching me the Pony Performance Cheatsheet! I will start reading it!
@mfelsche
Thank you for teaching me one cause of performance problems! I also want to think about it.
from http.
Related Issues (20)
- Create HTTP parser benchmarks HOT 2
- Beahivour of HTTPClient.apply if a session already exists HOT 3
- httpserver doesn't serve external clients HOT 2
- Rework HTTP Parser HOT 1
- HTTPClient doesn't close the connection after receiving chunked data HOT 8
- cannot build tests because net/ssl and regex are not part of the standard library HOT 3
- Add coverage to Makefile HOT 1
- Add bench to Makefile HOT 1
- Install changelog bot
- Update to using main-actor-documentation-action HOT 1
- Remove the HTTP server code from this repository HOT 1
- Switch to standard pony library test layout style
- Headers shouldnt be case sensitve
- Define Release Process HOT 2
- [Security] Workflow pr.yml is using vulnerable action actions/checkout
- [Security] Workflow release.yml is using vulnerable action actions/checkout
- Release 0.5.0
- HTTPServer closes the connection if the received chunk fails to parse HOT 3
- サーブサーブ HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from http.