Wrapper for solc binary package
Compiling complex smart contract via truffle compile
command is very slow
When we use truffle framework and compile ethereum solidity
smart contracts with truffle compile
command,
actually we use javascript version
of solidity compiler.
But solidity compiler works very slow, for instance compiling of ~20 .sol files
takes about 2 minutes
Simple solution is to use solc binary package, that works much faster. You can install this package by commands:
sudo add-apt-repository ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install solc
This package provides wrapper for solc
command
npm i -g truffle-fast-compile
truffle-fast-compile ./contracts/MyContract.sol