Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Very long compile time [APE-1588] #102

Open
salparadi opened this issue Dec 6, 2023 · 0 comments
Open

Very long compile time [APE-1588] #102

salparadi opened this issue Dec 6, 2023 · 0 comments

Comments

@salparadi
Copy link

Environment information

  • ape and plugin versions:
$ ape --version
0.6.26

$ ape plugins list
Core Plugins
  accounts
  cache
  compile
  console
  ethereum
  geth
  init
  networks
  plugins
  pm
  run
  test
Installed Plugins
  etherscan        0.6.10
  foundry          0.6.19
  ganache          0.6.9
  infura           0.6.5
  tokens           0.6.2
  vyper            0.6.13
  • Python Version: 3.10.13
  • Vyper Version: 0.3.9
  • OS: macOS

What went wrong?

New Ape user, moving from brownie. I had a Vyper contract I had previously deployed using Brownie that I wanted to update/enhance. I copied it into /contracts/ and ran ape compile. It took nearly 90 minutes for it to compile after I left it running. I have tried other contracts and they compile fine. This specific contract is roughly 1000 lines. Fair number of if/else conditionals, converts and slices. Main use case is a fallback function that accepts packed calldata directly which then gets sliced up and manipulated.

Per Discord discussion I tried manually compiling using Vyper like so:

vyper contracts/filename.vy took ~ 5 seconds
/Users/xxx/.vvm/vyper-0.3.9 contracts/filename.vy took ~ 5 seconds

So the contract compiles fine using vyper or the .vvm binary, but not using ape compile.

How can it be fixed?

No idea :)

@vany365 vany365 changed the title Very long compile time Very long compile time [APE-1588] Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant