Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Shouldn't JSON be faster?

by sflitman (Hermit)
on May 31, 2010 at 06:53 UTC ( #842357=note: print w/replies, xml ) Need Help??


in reply to Re: Shouldn't JSON be faster?
in thread Shouldn't JSON be faster?

That's interesting, I was able to show the same benefit. Why is OO interface slow?

SSF

Replies are listed 'Best First'.
Re^3: Shouldn't JSON be faster?
by Your Mother (Chancellor) on May 31, 2010 at 17:03 UTC

    OO uses methods instead of straight subs/functions and they (in the past at least) introduce an overhead of like 30%. OO is fantastic where appropriate but for stuff like this I think the functional interface is better.

Re^3: Shouldn't JSON be faster?
by Anonymous Monk on May 31, 2010 at 15:01 UTC
    What are you talking about? load_json is faster than load_config, and load_json is the only OO code shown

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://842357]
help
Chatterbox?
[james28909]: well, i can stream from ffmpeg to mpc-hc with udp://127.0.0.1: port. guess i just need to grab these packets and slap a rtp header on it and encrypt it with linsodium and send it.
[james28909]: in the rtp header, there is a nonce, i can just make this any number and increment it per packet?

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2017-05-23 05:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?