save_plot_pdf takes too much time

Đang mở
#101 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
r
Lĩnh vực
performance

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

performance

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.

Image

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.

Ngôn ngữ chính
R
Star
1
Fork
3
Merge trung bình
9 giờ 41 phút
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của SticsRPacks/CroPlotR

Tất cả issue của SticsRPacks/CroPlotR

Issue tương tự

Thêm issue về R

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.