[Godot engine internals] — quick question on GDScript's `ClassDB` lookups

Reading the manual right now, I come across this:

This ClassDB is what objects check against when performing an operation like accessing a property or calling a method. It checks the database’s records and the object’s base types’ records to see if the object supports the operation.

Out of curiosity: is there some optimization in place so that this runtime checking (during every single little property get/set or method call) is only done during F5-runs but then left out / skipped in actual builds? (similar to how in some languages like zig you can have runtime safety checks like bounds-checks etc in debug builds but leave them out for release builds)

(Meta: is this the right category? It’s not exactly asking for “Help” so I posted it here. Seems there’s no “internals” category.)

1 Like