Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[HTTPAPIs] Explore using a `[Output]Span<RigidArray<UInt8>>` for the reader and writer

Aperta
#28 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
30/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
swift
Ambito
api

Direzione di ricerca

Inizia esaminando i vincoli esistenti di lettura e scrittura del client e del server descritti nella proposta HTTP API. Esplora se OutputSpan<RigidArray> può esporre più chunk non contigui e consentire scritture in batch; è necessaria una conclusione chiara su questa direzione progettuale.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

async-streaming kind/enhancement status/needs-design

Right now the reader and writer types of the client and server are constraint to UInt8> which allows the underlying implementation to use whatever bag-of-bytes type they have available. However, this only allows us to do a single read->write over one Span of bytes. However, we will often have multiple discontiguous chunks of memory available at once and we should give the developer all of those discontiguous chunks at once. The goal is that this allows for better performance since we can batch more writes at once. We should explore constraining the reader and writer types over RigidArray<UInt8>.

Lingua principale
Swift
Stelle
70
Fork
24
Merge medio
9h 31m
PR unite (30g)
3

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apple/swift-http-api-proposal

Tutte le issue di apple/swift-http-api-proposal

Issue simili

Altre issue su Swift

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.