PrismarineJS / PrismarineJS/node-minecraft-protocol

Investigate the possibility to use es6 proxy to parse lazily only if the object is accessed

Open
#779 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

refactoring
Dominant language
JavaScript
Stars
1.4k
Forks
290
Avg merge
4d 8h
Merged PRs (30d)
7

Description

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy

would be needed to still parse enough to know the name of the packet.

Would need an useful benchmark to evaluate the gain

idea from @DeltaEvo

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked MDN Proxy reference and inspect the packet parsing flow to determine how a proxy could retain enough data to identify the packet name. Define and run a useful benchmark comparing eager and lazy parsing. Done means the potential gain is measured and the feasibility or limitations are documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
networking
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.