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

Move `INTEGER`/`REAL`/other accessors out of loops

Aperta
#7,623 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Refactoring
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
r
Ambito
performance

Direzione di ricerca

Start by locating the loop implementations that use INTEGER, REAL, and other accessors, then determine which accessor expressions do not depend on the current loop iteration. Review the related discussion in pull request 7598. Done means the independent accessors are moved out of their loops without changing behavior; the issue does not name specific files or tests.

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

Descrizione

code-quality

We are always so picky about moving INTEGER out of loops, but apparently here we did not care yet.

Originally posted by @ben-schwen in https://github.com/Rdatatable/data.table/pull/7598#discussion_r2702792455

It might be possible to write a linter that detects some cases where the expression in accessor(expression) does not depend on the current loop iteration.

Lingua principale
R
Stelle
3.9k
Fork
1.1k
Merge medio
15h 51m
PR unite (30g)
3

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

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 Rdatatable/data.table

Tutte le issue di Rdatatable/data.table

Issue simili

Altre issue su R

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.