[refactor]: merge multiple models into singular file for standard output
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- R
- Estrellas
- 20
- Forks
- 10
- Merge medio
- 4 d 48 min
- PR fusionados (30 d)
- 25
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de nmfs-ost/stockplotr
-
Check for obs and exp. for each example data in the packagePosiblemente ocupada @Schiano-NOAA la tomó hace 1 día. Abiertoquestion
nmfs-ost/stockplotr#452 · 1 asignado ·
Los mantenedores suelen responder en 2 días
-
Add make_rda and rda bundle to composition plotsPosiblemente ocupada @Schiano-NOAA la tomó hace 1 día. Abiertodevelopment enhancement
nmfs-ost/stockplotr#451 · 1 asignado ·
Los mantenedores suelen responder en 2 días
-
Race Conditions when Tests run in Parallel for Functions with File I/O CapabailitiesPosiblemente ocupada @JZahner1 la tomó hace 1 día. Abiertobug
nmfs-ost/stockplotr#450 · 1 asignado ·
Los mantenedores suelen responder en 2 días
-
Release Checklist - Monthly UpdatePosiblemente ocupada @Schiano-NOAA la tomó hace 6 días. Abierto
nmfs-ost/stockplotr#442 · 2 asignados ·
Los mantenedores suelen responder en 2 días
-
Brainstorm ways to automatically update `save_all_plots()`Posiblemente ocupada @sbreitbart-NOAA la tomó hace 14 días. Abierto
nmfs-ost/stockplotr#432 · 4 comentarios · 2 asignados ·
Los mantenedores suelen responder en 2 días
Todos los issues de nmfs-ost/stockplotr
Issues similares
-
Development of logger messagesAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
epiverse-trace/epiparameter#526 ·
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 68/100
eirini-zormpa/hpc-intro#30 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
-
Temp-directory guard in schedule_diagnostics() never matches on macOS (/var vs /private/var)Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
REditorSupport/languageserver#833 ·
Los mantenedores suelen responder en 1 día