Comments (6)
+1
I'm also sure that we can do better for performance.
from socket.io-stream.
Do you have any good thoughts on this ?
I'm really busy lately (with business) unfortunately :/
I've tried out a few things in the https://github.com/nkzawa/socket.io-stream/tree/fix/performance-issues branch.
Feel free to check it out.
Right now I feel that socket.io-stream
is only doing one read/write at a time, and you can really feel it the end user experience, which kind of makes it suck a little.
This is a massive issue, that would dramatically improve the library if we can solve it.
So lets get it fixed ! :)
from socket.io-stream.
I'm also busy recently because I'm taking a vacation and am traveling :)
I'll check the detail when I went back.
Anyway, it's better to take benchmark test first, IMO.
from socket.io-stream.
so you back from vacation?
from socket.io-stream.
I will check #13 again.
from socket.io-stream.
I noticed that writing multiple times at a time makes the module incompatible to Stream API.
A different approach is to send a bigger chunk at a time by using the highWaterMark
option.
BTW on upcoming socket.io v1.0, we can directly send a number of binary data at once.
I think we can improve performance then.
from socket.io-stream.
Related Issues (20)
- server > client HOT 1
- Simpler API
- MediaStream HOT 11
- Can you upload a folder?
- events.js:62 Uncaught Error: Uncaught, unspecified "error" event. (Authentication error) HOT 1
- Able to send/receive a native browser stream HOT 1
- An error when using Socket.io-stream with Electron.
- A port to other languages
- Stream interrupted file
- Uncaught TypeError: Cannot read property '_read' of null HOT 3
- Server dont recive emit or client dont emit HOT 3
- Send audio file from node.js server to another node.js server
- Client iOS
- This version of debug is vulnerable to ReDos attacks HOT 3
- In browser console getting error
- [Deprecation] SharedArrayBuffer
- add a settimeout to it to reduce cpu consumption
- Unfortunately there is no support for rooms and broadcasting for now.
- Could not create stream object. Getting Cannot read properties of undefined error.
- donot work with ubuntu 22.04
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 socket.io-stream.