RE: URL classes in node and Scala-JS

On 9 Jul 2014 at 17:56, henry.story@bblfish.net wrote:
>> Note that the Uri library in ScalaJS is only 278 bytes or so long
uncompressed!
>> 
>> -rw-r--r--  1 hjs  staff   278B  7 Jul 11:03 http-model-uri-opt.js
> 
> Euh. Of course that was too small to be true :-D
> 
> -rw-r--r--  1 hjs  staff   609K  9 Jul 17:38 akka-urijs-test-opt.js
> 
> That is what is left after compressing the code that is built on a parser
called parboiled,
> a powerful library called shapeless, and the scala libraries used by the
akka code.
> So any code that one writes will probably never be much bigger than that.
> Note also that this is uncompressed. It compresses down to
> 
> -rw-r--r--  1 hjs  staff   128440  9 Jul 17:38 akka-urijs-test-opt.js.gz

Really? 130k just for processing/parsing URIs?


--
Markus Lanthaler
@markuslanthaler

Received on Wednesday, 9 July 2014 16:19:24 UTC