Skip to content

Conversation

ian-wd
Copy link

@ian-wd ian-wd commented Apr 16, 2025

  • ensure we properly close FileOutputStream

@iBotPeaches iBotPeaches requested a review from Copilot April 16, 2025 12:09
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR improves file output stream handling in SketchCanvas by leveraging Kotlin's use block to ensure the stream is automatically closed.

  • Replaces the explicit FileOutputStream instantiation within bitmap.compress with a managed use block.
  • Simplifies resource management to enhance performance and reliability.

@iBotPeaches iBotPeaches requested a review from jyann April 16, 2025 12:09
@iBotPeaches iBotPeaches merged commit dee5774 into master Apr 16, 2025
1 check passed
@iBotPeaches iBotPeaches deleted the save-perf-changes branch April 16, 2025 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants