Page MenuHome

Improve performance test constraint
Needs ReviewPublic

Authored by Monique Dewanchand (mdewanchand) on Nov 17 2022, 4:26 PM.

Details

Summary

Test constraint checks whether an object exists in the bmain. Instead of looping through all the objects in bmain you can also check the ID flag. This should be faster.

Diff Detail

Repository
rB Blender
Branch
improve_performance_test_constraint (branched from master)
Build Status
Buildable 24692
Build 24692: arc lint + arc unit

Event Timeline

Monique Dewanchand (mdewanchand) requested review of this revision.Nov 17 2022, 4:29 PM
Monique Dewanchand (mdewanchand) retitled this revision from Test constraint checks whether an object exists in the bmain. Instead of looping through all the objects in bmain you can also check the ID flag. This should be faster. to Improve performance test constraint.
Monique Dewanchand (mdewanchand) edited the summary of this revision. (Show Details)

I don't think we can make such changes until T88555: ID Management: Sanitize and clarify our ID tags has been addressed, currently relying on tags to know if an ID is in G_MAIN or not is... risky at best.