Skip to content
  • Robert Maynard's avatar
    Remove the usage of enable_if from method signatures to reduce binary size. · 4156130e
    Robert Maynard authored
    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
    4156130e