meta-pytorch / meta-pytorch/torchcodec

Cleaning up uses of `std::string` vs `std::string_view`

Open
#1,256 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.2k
Forks
125
Avg merge
22h 47m
Merged PRs (30d)
54

Description

We've been using both inconsistently. We should have a principled reason to use one vs the other. Note that we migrated a bunch of previous uses of std::string_view to std::string since the torch stable ABI requires it.

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.

Research direction

No files, tests, or entry points are named. Begin by locating the existing std::string and std::string_view uses, then review the torch stable ABI constraint and establish a consistent rule; done means the relevant uses follow a documented principle without violating ABI requirements.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
backend
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.