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

Instancer hash bug #6258

Draft
wants to merge 4 commits into
base: 1.5_maintenance
Choose a base branch
from

Conversation

danieldresser-ie
Copy link
Contributor

I've added a test and a fix for the instancer hash bug I noticed.

Seems reasonably straightforward, and moves things a bit in the direction we want to go anyway to support relative prototype paths.

The main loss of performance is that we now compute the engine while hashing childNames for ".../instances/" ... but in order to evaluate that, we must have already evaluated the childNames one level above, which would have evaluated the engine anyway. So this doesn't seem to be a problem in practice. I quickly hacked together a test to show some performance loss, which shows 15%, but this loss is completely negligible in any of the more practical tests.

I've made this a draft PR because I don't think it makes sense to merge this before we figure out how it fits in with all the other Instancer stuff we're looking at now, but in isolation, I think it could be quite a reasonable change.

@danieldresser-ie danieldresser-ie changed the base branch from main to 1.5_maintenance February 5, 2025 03:06
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