https://github.com/vitiko/truffle-fast-compile
https://github.com/vitiko/truffle-fast-compile
solc solidity solidity-compiler truffle truffle-framework
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/vitiko/truffle-fast-compile
- Owner: vitiko
- Created: 2018-04-01T19:42:37.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-02T07:31:42.000Z (about 8 years ago)
- Last Synced: 2025-10-23T13:24:45.464Z (8 months ago)
- Topics: solc, solidity, solidity-compiler, truffle, truffle-framework
- Language: JavaScript
- Homepage: https://medium.com/@viktornosov/truffle-compile-so-slow-solc-is-much-faster-2acfb7004bbe
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Truffle fast compile
Wrapper for [solc binary package](http://solidity.readthedocs.io/en/develop/installing-solidity.html#binary-packages)
## Problem
Compiling complex smart contract via `truffle compile` command is [very slow](ttps://medium.com/@viktornosov/truffle-compile-so-slow-solc-is-much-faster-2acfb7004bbe)
When we use [truffle framework](http://truffleframework.com/) and compile ethereum solidity
smart contracts with `truffle compile` command,
actually we use [javascript version](https://github.com/ethereum/solc-js)
of solidity compiler.
But solidity compiler works very slow, for instance compiling of ~20 .sol files
takes about 2 minutes
## Solution
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
## Installation
`npm i -g truffle-fast-compile`
## Usage
`truffle-fast-compile ./contracts/MyContract.sol`