Skip to content

Conversation

@doorgan
Copy link
Collaborator

@doorgan doorgan commented Dec 24, 2025

Drastically improves Engine load times by incrementally namespacing engine files

Rather than complicating the transformer modules to make them aware of which files should be touched and which shouldn't, we:

  1. Figure out which files are new, change and which should be deleted from the output directory
  2. Delete the files that are flagged for deletion in the output folder
  3. Copy the new+changed files to a temporary folder
  4. Namespace that folder
  5. Copy the contents of the temp folder to the output folder

This achieves the same with the slight overhead of creating and cleaning up a temporary folder.

In my test on my m2 macbook I got the times down from ~10 seconds to 800-1200ms.

@doorgan doorgan force-pushed the doorgan/incremental-namespacing branch from dc807dd to 78011ff Compare December 24, 2025 07:01
@doorgan doorgan linked an issue Dec 24, 2025 that may be closed by this pull request
@doorgan doorgan force-pushed the doorgan/incremental-namespacing branch 2 times, most recently from 11041b1 to 551aa61 Compare December 24, 2025 07:23
@doorgan doorgan force-pushed the doorgan/incremental-namespacing branch from 551aa61 to 63ded6d Compare December 24, 2025 07:33
@doorgan doorgan marked this pull request as ready for review December 24, 2025 13:06
@doorgan doorgan force-pushed the doorgan/incremental-namespacing branch from 3d00df6 to 5e741b8 Compare December 24, 2025 13:24
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.

Skip or incrementally namespace Engine builds

2 participants