I thought MessagePack js implementations were quite a bit slower than
4-5x. Do you know of any benchmarks? String encoding/decoding is
definitely big part of the slowdown, not disagreeing.

MessagePack doesn't even have a string type: I think it's only
convention that their raw type contains utf-8 bytes if semantically a
string, and this is a big headache for interop. Couldn't transit
conceivably store strings as raw utf16 bytes or even arrays of packed
fixnum/uint16, tag the type at the transit level, and completely
sidestep the string encoding issue?

On Mon, Aug 4, 2014 at 10:20 AM, David Nolen <dnolen.li...@gmail.com> wrote:
> On Mon, Aug 4, 2014 at 11:14 AM, Francis Avila <fav...@breezeehr.com> wrote:
>> The difference in performance between native and non-native string
>> encoding (using the fastest js implementations I can manage to write,
>> granted) is at most 2x to 3x, which is certainly an improvement but
>> not enough to overcome the approximately order-of-magnitude difference
>> in overall encoding and decoding speed that we're looking at now.
>
> Order of magnitude for what? Fressian? Or are you talking about
> existing JavaScript MessagePack implementations. It's my impression
> these are only 4-5X slower than JSON and that a large contributor to
> the slowdown is string decoding.
>
> David
>
> --
> Note that posts from new members are moderated - please be patient with your 
> first post.
> ---
> You received this message because you are subscribed to a topic in the Google 
> Groups "ClojureScript" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/clojurescript/xhdrGunEXPE/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> clojurescript+unsubscr...@googlegroups.com.
> To post to this group, send email to clojurescript@googlegroups.com.
> Visit this group at http://groups.google.com/group/clojurescript.

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to