Skip to content

optimize filesystem access in chunk execution - #14765

Merged
kevinushey merged 5 commits into
mainfrom
bugfix/notebook-console-execution-optimizations
May 30, 2024
Merged

kevinushey merged 5 commits into
mainfrom
bugfix/notebook-console-execution-optimizations

Conversation

@kevinushey

Copy link
Copy Markdown
Collaborator

Intent

A collection of potential resolutions for #14619.

Approach

  • When executing a chunk, avoid checking for and creating the console output file on each line of output; instead, just create the file once on the first piece of chunk output intended for that file.

  • Buffer writes into the history database, using an in-memory buffer that gets flushed 1 second after any output is received.

Automated Tests

Should be covered by existing automation.

QA Notes

Would be nice if we could find an environment for testing (proejct living on a slow NFS / CIFS server?)

Documentation

N/A

Checklist

  • If this PR adds a new feature, or fixes a bug in a previously released version, it includes an entry in NEWS.md
  • If this PR adds or changes UI, the updated UI meets accessibility standards
  • A reviewer is assigned to this PR (if unsure who to assign, check Area Owners list)
  • This PR passes all local unit tests

@kevinushey
kevinushey requested a review from gtritchie May 30, 2024 00:19
getSize() already checks for file existence, and returns a size of 0 if
the file does not exist.

@gtritchie gtritchie left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@kevinushey
kevinushey merged commit cbc5e3a into main May 30, 2024
@kevinushey
kevinushey deleted the bugfix/notebook-console-execution-optimizations branch May 30, 2024 21:35
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.

2 participants