[swift-users] Need help with compile times (type inference?)

David Turnbull dturnbull at gmail.com
Mon Jan 25 02:59:50 CST 2016


On Sun, Jan 24, 2016 at 9:55 PM, Chris Lattner <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

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160125/aee0803b/attachment.html>


More information about the swift-users mailing list