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

runners take too long to finish a concrete execution #75

Open
cyberthirst opened this issue Dec 17, 2024 · 0 comments
Open

runners take too long to finish a concrete execution #75

cyberthirst opened this issue Dec 17, 2024 · 0 comments

Comments

@cyberthirst
Copy link
Collaborator

Describe the bug

  • some fun calls have too long execution time

consider the call to func_0:

@external
@pure
def func_0(x_INT_0: int8, x_INT_1: uint8):
    for i_2: uint256 in range(0, 2097152):
        for i_3: uint256 in range(0, 2097152):
            break

@internal
@nonpayable
def func_1(x_DA_INT_0: DynArray[uint8,1], x_BYTESM_0: bytes1):
    return

@external
@pure
def __default__():
    return
  • it is either necessary to do async execution and kill the thread after some concrete time interval
  • or generate contracts which won't be so computationally expensive - i assume that loops are the main problem

Version Information

Additional context

Add any other context about the problem here.

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