What is the motivation for the index-based format?

Open
#35 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript
Domain
api

Research direction

Start by reading the linked ProfilerTrace dictionary and its nested structures in the js-self-profiling proposal. Review the existing discussion and determine whether the proposal explains the motivation for index-based strings in the JavaScript API. Done means the rationale is decided and documented, or the proposal is updated to reflect the decision.

Written by the indexing model from the issue text.

Description

I can understand, in a binary format, using certain arrays of strings, separate from indexed references to them. But the current proposal uses this in its JavaScript API as well, in the ProfilerTrace dictionary and nested structures. I would have expected to see strings directly used in such dictionaries instead. Is this motivated by compression, or ease of certain kinds of processing, or something else?

Dominant language
HTML
Stars
207
Forks
17
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

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 WICG/js-self-profiling

All issues in WICG/js-self-profiling

Similar issues

More Backend & API Design issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.