Skip to content

Remove the usage of enable_if as return type to reduce binary size.

Using enable_if/disable_if as a return type has a negative impact on binary size compared to use a boost::true/false_type as a method parameter.

For comparison the WorkletTests_TBB sees a 6-7% reduction in binary size when compiled with O3.

Origin WorkletTests_TBB size details: __TEXT __DATA __OBJC others dec hex 2363392 49152 0 4297793536 4300206080 1004ff000

Updated WorkletTests_TBB size details: __TEXT __DATA __OBJC others dec hex 2215936 49152 0 4297568256 4299833344 1004a4000

Merge request reports