MetaMask / MetaMask/snaps

Consider allowing Snaps to be multi-threaded

Open
#399 0 comments 3 reactions 0 assignees View on GitHub
area-developing type-enhancement type-research
Dominant language
TypeScript
Stars
853
Forks
662
Avg merge
2d 8h
Merged PRs (30d)
8

Description

Using snaps for low latency high frequency trading brings a new set of problems. @chrisckwong821 has a theory that a single-threaded asynchronous Snaps might be too slow to be competitive and suggest allowing a multi-threaded environment.

To test that theory we should create some benchmarks. One benchmark mentioned was listening to multiple EVM chains (eg. Phantom / Ethereum) on local node at the same time and compare latency single-threaded / multi-threaded RPC requests.

Contributor guide

Open the contributing guide

Research direction

No file or test is named. Start by locating the Snaps execution/runtime entry point and any existing benchmark harness, then define the local-node scenario for listening to multiple EVM chains and comparing single-threaded with multi-threaded RPC latency. Done means the benchmark results show whether multi-threading improves the stated workload.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend, performance
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.