Skip to content

Conversation

@12345jy
Copy link
Contributor

@12345jy 12345jy commented Dec 8, 2024

Description

This change improves load times for SplashKit Online C++ Compiler by caching decompressed files in memory to avoid repeated decompression. It reduces the load time when multiple copies of SK Online are running by returning cached decompressed data if available, otherwise performing decompression once.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as
    expected)
  • Documentation (update or new)

How Has This Been Tested?

Tested by loading the compiler multiple times, ensuring decompressed files are cached and reused for faster subsequent loads.

Testing Checklist

  • Tested in latest Chrome
  • Tested in latest Safari
  • Tested in latest Firefox

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have requested a review from ... on the Pull Request

@github-actions
Copy link

github-actions bot commented Dec 8, 2024

🐋 PR Preview!
The preview is no more!
Congrats if this was merged! 😄

@12345jy 12345jy closed this Dec 8, 2024
@12345jy 12345jy deleted the Improve-Load-Time-when-Loading-Multiple-Copies branch December 8, 2024 12:24
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