Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

object model 3a part 2: http/stream instance fields (_header, _events, destroyed) walk the prototype chain (~106k walks per fastify run)

Open
#12,689 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
node.js, rust, typescript

Research direction

Start with qb6:/root/claude-lanes/p3bii-PROGRESS.md and p3bii/work/keys.tsv, then trace the object model step 6, 3a part 2 instance layout work for the classes named in the issue. Check how constructor-set fields are represented at object creation and use the fastify inject workload to compare prototype walks. Done means _header, _events, and destroyed are available as instance slots at birth and their reads no longer walk the prototype chain.

Written by the indexing model from the issue text.

Description

Measured in object-model step 6 slice 3b-ii phase 1 on main b8026ceb61, fastify inject (light-my-request): about 106k of the 397k resolve_inherited_field_from_prototype walks per run are for _header (31.8k), _events (42.4k) and destroyed (10.6k)…, read on light-my-request Response / ServerResponse instances.

In node these are own fields that the constructors put on the instance (OutgoingMessage, EventEmitter.init, stream state), so node never walks a chain for them. In perry the instance doesn't carry them, so every read misses its own fields and walks Response → ServerResponse → OutgoingMessage → Stream → EventEmitter → Object.prototype; _header misses all six.

Fix: instance layouts for these classes (object-model step 6, 3a part 2, owner ump), with the constructor-set fields as slots at birth. Slice 3b-ii (the prototype layouts) does not touch instances.

Data: qb6:/root/claude-lanes/p3bii-PROGRESS.md and p3bii/work/keys.tsv.

Dominant language
Rust
Stars
4.9k
Forks
166
Avg merge
2h 54m
Merged PRs (30d)
922

Getting set up

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.

More from PerryTS/perry

All issues in PerryTS/perry

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.