Comments (8)
I dunno, ignorance? For me it doesn't show up in the first 10 pages searching for "erlang json" so it might as well not exist ;-)
Sarcasm aside, we already support eep0018 so jiffy should not be a stretch.
from sockjs-erlang.
(FTR: jiffy lives here https://github.com/davisp/jiffy)
Also: [...] premature optimization [...]
I think we should make SockJS stable first and than play with not-pure-erlang dependencies.
Additionally, there are high chances that JSON encoding will not be used for SockJS-protocol v0.2.
from sockjs-erlang.
(Of course we can revisit this if the new protocol still needs JSON...)
from sockjs-erlang.
In #9 we came back to the idea.
from sockjs-erlang.
Nice to hear.
from sockjs-erlang.
It seems that it won't be a premature optimization. Here's the output of fprof analysis over application which does broadcast data to ~3000 users 4 times (short messages around 110-120 bytes each, excluding SockJS protocol overhead):
https://gist.github.com/2781872
As you can see mochijson2 and it's utf8 handling code is the most CPU hungry one.
from sockjs-erlang.
http://si14.livejournal.com/18757.html you can also find some JSON-related benchmarks here.
from sockjs-erlang.
@gleber Jiffy is fine. We actually did support it in previous sockjs-erlang versions:
sockjs-erlang/src/sockjs_util.erl
Line 36 in fb32ebb
But, SockJS requires custom encoding of some unicode characters. Mochiweb does most of the work out of the box and to get everything working (\uFFFE and \uFFFF
chars) I needed to patch it a bit.
I'm happy to have optional jiffy
support if it passes all the sockjs-protocol tests regarding encoding:
from sockjs-erlang.
Related Issues (20)
- Node.js dependency HOT 5
- Support for disabling websockets transport HOT 1
- websocket controlling loop crash HOT 3
- Hibernate cowboy/sockjs processes to save memory HOT 1
- Cookies. HOT 4
- badmatch (sockjs_http.erl:86). HOT 1
- Introduce send_multi and send_prepared HOT 2
- sockjs_action:reply_loop/5 is not tail recursive HOT 1
- get cookie info with connection:info() and other enhancements HOT 4
- Add Cowboy 0.6.1 support HOT 12
- Error handling HOT 1
- Don't use list_to_atom to avoid running out of atoms
- Slow websocket consumer problem
- Add error-checking to sockjs_filers:reply_loop to detect disconnection
- Add support of R16B HOT 2
- Add Cowboy 0.8.x Support HOT 11
- Can't get demos to work HOT 4
- xmerl needs to be started in examples HOT 1
- Is this project dead? HOT 4
- src/sockjs_session.erl:17: type queue() undefined
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 sockjs-erlang.