Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

polish: Optimize report generation #59

Merged
merged 5 commits into from
Oct 6, 2023

Conversation

ConnorGray
Copy link
Owner

Generating the 'Queue' and 'Daily' reports is now much faster. Some very rough numbers collected from generating reports in my main work workspace:

Before After
Queue ~10-20s <1s
Daily ~18s ~5s

These speed gains were accomplished primarily by replacing NotebookObject-based calls like NotebookRead and NotebookWrite (for reading data from the source notebooks and writing it into the report notebook) with extracting data out of and constructing primitive Notebook[..] expressions directly, which doesn't require round-trip operations to the FrontEnd.

…}] expression instead of using NotebookWrite

This makes report generation that used to take >10-20 seconds
now takes <1 second.
…Read cells in Chapter group

This reduces the time taken by CreateDailysReport[]
from ~18s to just ~5-6s
@ConnorGray ConnorGray merged commit 6a1feed into master Oct 6, 2023
@ConnorGray ConnorGray deleted the polish/optimize-report-generation branch October 6, 2023 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant