Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Truffle speed improvements; remove extra compilation from tests #343

@LogvinovLeon

Description

@LogvinovLeon

Issue

Truffle could be faster. We need to profile it, find bottlenecks and implement some caching.

  • truffle version takes 4s on my computer
  • truffle test with solidity tests doesn't cache compiled contracts and artifacts and rebuilds them on every run

Steps to Reproduce

  • run truffle version
  • run truffle tests with solidity tests

Expected Behavior

  • I expect time for truffle version to be negligible
  • I expect second test run to be faster than the first one and use precompiled contracts or only recompile the changed ones.
    • Maybe use a temp directory
    • Maybe have a directory inside of a project ignored in a generated .gitignore

Actual Results

Above^

Environment

  • Operating System: macos
  • Hardware: Macbook Retina 12 inch early 2016 1.1GHz Intel core m3
  • Truffle version: 3.0.5
  • Ethereum client: testrpc
  • node version: v7.5.0
  • npm version: 4.1.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions