/Engine/Source/Runtime/UMG/Public/Binding/States/WidgetStateBitfield.h
All this does is cache the integer results of dynamicFNamestate lookup from an IWidgetStateNameMapper So it's prefertable to create these once and reuse. In particular, if broadcasting current state determine the correct bitfield to modify the existing state ahead of time. Save that bitfield and use it when performing state-modifications. Likewise when performing state tests, try to construct the relevant bitfield ahead of time & store that to later be compared against
struct FWidgetStateBitfield