I have a contract fooContract which is using a fooLib library, calling fooLib.foo(LibStruct storage param)
The transaction cost to create fooContract seems to depend on the code in the fooLib.foo() function despite the params are unchanged.
Ie. using solidity browser fooContract create costs 3,185,059. if I comment out the code in fooLib.foo(), the fooContract create cost goes down to 2,816,000 .
As far as I understood libs are a way to move out functionality for contracts too large for block gas limit.
Am I missing a point here?