Re:Javascript Bitcoin Miner
by naughtysriram on Friday May 20, 2011 @02:48AM
(#2566695)
Just used google's closure compiler http://closure-compiler.appspot.com/home on http://bitp.it/jsMiner.js and it saved some 4.11%. While compiling on advanced mode i get lot of warnings.
[ Parent
| on HN ]
If you take the output of the Closure compiler and run it through the compiler again, it will almost always be smaller the second time. However, the second will also likely produce javascript that doesn't work because it renames things that shouldn't have been renamed (and only the original source contains the information necessary to determine what shouldn't be renamed).
The 4.11% reduction you experienced is likely gained at the expense of invalidating the code.
Re:Javascript Bitcoin Miner
by josephholsten on Monday May 23, 2011 @07:10PM
(#2577967)
That's pretty interesting! We'll give it a look and see how much it improves things.