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

Syscall Batching #128

Open
Latrasis opened this issue Mar 26, 2019 · 0 comments
Open

Syscall Batching #128

Latrasis opened this issue Mar 26, 2019 · 0 comments
Labels
A-spec Area: Specification P-low Low priority T-evm Target system: Ethereum EVM

Comments

@Latrasis
Copy link
Member

At the current moment, each syscall costs an additional DELEGATECALL. Such that if we where to write to n storage keys, we would have to make a DELEGATECALL for each one. One way to reduce these costs would be to introduce batching.

Type of Batching:

There are three types of batching we would have to choose from:

  • Batch by Capability Index where:
    • You can only batch syscalls that use the same cap and thus are the same type.
    • On error, the kernel reverts. On input, the kernel returns input indexed by order.
  • Batch by Capability Type:
    • You can only batch syscalls that use caps with the same type.
    • On error, the kernel reverts. On input, the kernel returns input indexed by order.
  • Batch by any Capability:
    • You can batch syscalls that use any caps.
    • On error, the kernel reverts. On input, the kernel returns input indexed by order.

Issues:

  • Should we allow all syscalls to be batch-able?
  • How do we do error handling?
  • This may introduce a potential gas-limit attack in kernel-space.
  • Can we introduce such a feature with the least amount of additional complexity?
@Latrasis Latrasis added the A-spec Area: Specification label Mar 26, 2019
@Latrasis Latrasis self-assigned this Mar 26, 2019
@Latrasis Latrasis added the P-low Low priority label Mar 26, 2019
@Latrasis Latrasis added the T-evm Target system: Ethereum EVM label May 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-spec Area: Specification P-low Low priority T-evm Target system: Ethereum EVM
Projects
None yet
Development

No branches or pull requests

2 participants