save_plot_pdf takes too much time
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Refactorización
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- r
- Área
- performance
Línea de trabajo
Start by locating save_plot_pdf and profiling its work when given dynamic plots; the issue does not identify a source file or test. Compare runtime on the reported 60-situation example before and after any change, and verify the generated PDFs still work; done means a meaningful reduction in runtime that makes larger SMS datasets more feasible.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
save_plot_pdf takes too much time — about 8 minutes to generate a PDF of dynamic plots for 60 situations.
I want to generate files using CroPlotR to obtain evaluation results from STICS.
To achieve this, I do the following:
sim <- SticsRFiles::get_sim(workspace = "path/to/usms_data")
obs <- SticsRFiles::get_obs(workspace = "path/to/usms_data")
library(CroPlotR)
plots <- plot(sim, obs = obs, type = "dynamic")
CroPlotR::save_plot_pdf(plots, out_dir = "/path/to/out_dir")
The 60 situations are a sample from SMS data.
I used the RStudio profiler to get more information about which parts of the code are the most time-consuming.
This behavior occurs on both the main and code-refactoring branches.
I think the function should be optimized to reduce execution time.
My goal is to have an evaluation system that processes at least the entire SMS dataset (around 3,200 situations), but at the moment this is not feasible due to the long processing time.
- Lenguaje dominante
- R
- Estrellas
- 1
- Forks
- 3
- Merge medio
- 9 h 41 min
- PR fusionados (30 d)
- 2
Preparar el entorno
- 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 SticsRPacks/CroPlotR
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
SticsRPacks/CroPlotR#185 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
SticsRPacks/CroPlotR#180 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
SticsRPacks/CroPlotR#186 ·
-
Error is raised if not any var in data.frames in sim_list of a stics_wrapper returned objectAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 57/100
SticsRPacks/CroPlotR#181 ·
-
enhancement
Dificultad 3/5 Medio día Aptitud para principiantes 64/100
SticsRPacks/CroPlotR#173 ·
Todos los issues de SticsRPacks/CroPlotR
Issues similares
-
1.7
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
pharmaverse/admiral#3235 ·
Los mantenedores suelen responder en 2 días
-
Typo: p.381Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 95/100
rmcelreath/rethinking#482 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día