> On Oct 5, 2017, at 12:52 AM, Slava Pestov <[email protected]> wrote:
>
>
>
>> On Oct 4, 2017, at 9:40 PM, Taylor Swift via swift-evolution
>> <[email protected]> wrote:
>>
>> i’m just tryna follow along here && this is probably a dumb question, but is
>> it possible for a generic function to be emitted as a set of specialized
>> functions into the client, but not inlined everywhere? It can be the case
>> where a large generic function gets slowed down by the large number of
>> generic operations inside it but it doesn’t make sense for it to be inlined
>> completely.
>
> This is already possible. The optimizer doesn’t have to inline an
> @_inlineable function at its call site; it can emit a call to a specialized
> version instead.
>
> Slava
Is there a reason using @_specialize() and @_inlineable together is slower than
using @_inlineable by itself?
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution