[swift-users] Need help with compile times (type inference?)
Joe Pamer
jpamer at apple.com
Tue Jan 26 15:54:52 CST 2016
Ok, thanks, David - I’ll take a look and see what’s going on here.
- Joe
> On Jan 26, 2016, at 9:57 AM, David Turnbull <dturnbull at gmail.com> wrote:
>
> Awesome! Any attention is appreciated.
>
> I tried the 3.0-dev snapshot from yesterday. The ortho example is slower than 2.2-dev which is slower than 2.1.
>
> If you get compiler crashes, comment out the any() and all() functions. I opened a bug on this.
> https://bugs.swift.org/browse/SR-622 <https://bugs.swift.org/browse/SR-622>
>
> If I can help, please let me know.
>
> -david
>
> On Mon, Jan 25, 2016 at 10:49 AM, Joe Pamer <jpamer at apple.com <mailto:jpamer at apple.com>> wrote:
> Thanks for sharing, David!
>
> As JoeG mentions below, I’ve been rolling out a series of major improvements in this area. I’ll take a look at SwiftGL to see what else can be done.
>
> - Joe
>
>> On Jan 25, 2016, at 12:59 AM, David Turnbull via swift-users <swift-users at swift.org <mailto:swift-users at swift.org>> wrote:
>>
>> On Sun, Jan 24, 2016 at 9:55 PM, Chris Lattner <clattner at apple.com <mailto:clattner at apple.com>> wrote:
>> Are you willing/able to share the code for your project? That definitely sounds strange,
>>
>> Soitenly: https://github.com/AE9RB/SwiftGL <https://github.com/AE9RB/SwiftGL>
>>
>> The 28,000 lines of loader code are fine. The 6,000 lines of math libraries are the problem.
>>
>> I'm sure it's something to do with prototypes and generics. You can change in Types.swift:
>> public protocol FloatingPointScalarType : ScalarType
>> to:
>> public protocol FloatingPointScalarType : ScalarType, FloatingPointType
>> and make the problem a bit worse. This is something I'd actually like to use, except I don't because a few "where constraints" do what I need without the build slowdown.
>>
>> Swift 2.1 or 2.2-dev doesn't make a difference. The C++ compiler I bench against is also llvm. The compiled binaries are truly fast (with WMO). It's only the development process that's too slow because of build times.
>>
>> -David "nyuk nyuk nyuk" Turnbull
>>
>> _______________________________________________
>> swift-users mailing list
>> swift-users at swift.org <mailto:swift-users at swift.org>
>> https://lists.swift.org/mailman/listinfo/swift-users <https://lists.swift.org/mailman/listinfo/swift-users>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160126/7f8a140a/attachment.html>
More information about the swift-users
mailing list