lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Jun 18, 2014, at 8:52 AM, Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:

> Here is another example. It's a graphics metafile for drawing the official
> map of NYC subway converted from PDF. It has 165000 lines and lots of
> different numbers. Here are the sizes in bytes:
> 
> source     6858481
> binary    12115217      (1.77 of source)
> stripped   6633947      (0.97 of source)
> 
> A typical section of the file is:
> 
> p=path{M,0,0,C,4.025,4.963,11.174,23.362,11.174,23.362,L,-70.383,-10.472,L,-117.046,-4.284,C,-117.046,-4.284,-117.676,-19.396,-120.727,-31.059,C,-123.778,-42.722,-140.5,-51.168,-136.877,-55.946,C,-133.254,-60.725,-133.281,-63.931,-133.456,-69.073,C,-133.631,-74.214,-133.515,-84.134,-140.601,-98.905,C,-147.687,-113.676,-159.332,-133.048,-166.395,-141.09,C,-173.458,-149.133,-174.414,-162.029,-176.548,-174.565,C,-178.682,-187.101,-183.1,-191.718,-188.327,-203.268,C,-193.555,-214.819,-197.693,-220.736,-203.136,-226.541,C,-208.58,-232.347,-214.067,-239.438,-211.253,-246.216,C,-208.439,-252.994,-208.41,-251.55,-204.766,-247.839,C,-201.121,-244.127,-185.862,-227.027,-178.876,-218.191,C,-171.888,-209.355,-152.654,-164.969,-145.356,-152.419,C,-138.057,-139.87,-116.81,-95.029,-110.1,-79.813,C,-110.268,-67.785,-11.295,-13.926,0,0,Z,}
> :stroke({width=.469,cap=cap.butt,miter_limit=4,join=join.miter,})
> :affine(1,0,785.078,0,-1,509.81702):transform(xf)
> co=color(.93333334,.88235295,.77254903,1,1)
> P[48]=fill(p,co)
> P[49]=pop()

Well, given that example I think I am justified in saying that having a stripped binary be larger than the original source is probably a rare occurrence! :)

That looks like one very interesting (6 MB!) Lua script... I imagine the constant table must be absolutely huge!

~pmd