[refactor]: merge multiple models into singular file for standard output
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
Direzione di ricerca
Start by reading the standard-output code that creates the tables and figures, and trace where it currently passes a list of data frames; the issue does not name specific files or tests. Check whether those data frames share a schema and how the outputs consume them. Done means the outputs use a single data frame and the package's relevant tests pass.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
We should feed in a single df to all tables and figures rather than a list. Especially to aid in memory issues. See rationale below:
Memory wise, it is more efficient to have a dataframe rather than a list. I am thinking that if we actually move to parquet files/databases that the list of dataframes would be the least efficient way to store this information in R. And, according to Gemini
A single consolidated data frame is significantly more memory-efficient and performant than a list of many small data frames, assuming the data frames share the same schema. Every R object carries structural overhead (class definitions, attributes, dimensions, and names). If you store thousands of small data frames in a list, R maintains thousands of separate attribute vectors and column names. Consolidating into one table collapses that metadata into a single set. R's vector engine operates on contiguous blocks of memory. Iterating over elements in a list (e.g., via lapply() or purrr::map()) incurs call-stack overhead and traverses fragmented pointers across the heap, whereas column operations on a single data frame utilize SIMD vectorization and cache locality. The R garbage collector tracks every allocated node (Vcells and Ncells). Having a large list of separate data frames balloons the total count of distinct objects, forcing the garbage collector to run frequently and cause execution pauses.
A list of data frames is only preferable if:
- The structures differ: The tables do not share common columns or types, making a combined table sparse or full of NA padding.
- Independent lifecycle: You frequently delete, update, or process chunks independently and want to let R selectively garbage-collect individual pieces without rewriting a massive master table.
Originally posted by @kellijohnson-NOAA in #455
- Lingua principale
- R
- Stelle
- 20
- Fork
- 10
- Merge medio
- 3g 22h
- PR unite (30g)
- 26
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di nmfs-ost/stockplotr
-
Change `convert_output` tests to use `r4ss:SS_Output`Forse già presa @JZahner1 l’ha presa oggi. Aperta
nmfs-ost/stockplotr#460 · 4 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Address R cmd check warningsForse già presa @sbreitbart-NOAA l’ha presa 1 giorno fa. Aperta
nmfs-ost/stockplotr#459 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Check for obs and exp. for each example data in the packageForse già presa @Schiano-NOAA l’ha presa 2 giorni fa. Apertaquestion
nmfs-ost/stockplotr#452 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Add make_rda and rda bundle to composition plotsForse già presa @Schiano-NOAA l’ha presa 2 giorni fa. Apertadevelopment enhancement
nmfs-ost/stockplotr#451 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Release Checklist - Monthly UpdateForse già presa @Schiano-NOAA l’ha presa 7 giorni fa. Aperta
nmfs-ost/stockplotr#442 · 2 assegnatari ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di nmfs-ost/stockplotr
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
microbiome/OMA#911 ·
-
SbivarApertaAI review
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
LiNk-NY/BiocReviews#76 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Simulated outbreak data contains partial information for time after `cap_max_day`Forse già presa @joshwlambert l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
epiforecasts/ringbp#258 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
pharmaverse/admiraldev#581 ·