<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Ok, thanks, David - I’ll take a look and see what’s going on here.<div class=""><br class=""></div><div class="">- Joe</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 26, 2016, at 9:57 AM, David Turnbull &lt;<a href="mailto:dturnbull@gmail.com" class="">dturnbull@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Awesome! Any attention is appreciated.&nbsp;<div class=""><br class=""></div><div class="">I tried the 3.0-dev snapshot from yesterday. The ortho example is slower than 2.2-dev which is slower than 2.1.</div><div class=""><br class=""></div><div class="">If you get compiler crashes, comment out the any() and all() functions. I opened a bug on this.</div><div class=""><a href="https://bugs.swift.org/browse/SR-622" class="">https://bugs.swift.org/browse/SR-622</a><br class=""></div><div class=""><br class=""></div><div class="">If I can help, please let me know.</div><div class=""><br class=""></div><div class="">-david</div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Mon, Jan 25, 2016 at 10:49 AM, Joe Pamer <span dir="ltr" class="">&lt;<a href="mailto:jpamer@apple.com" target="_blank" class="">jpamer@apple.com</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word" class="">Thanks for sharing, David!<div class=""><br class=""></div><div class="">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.</div><span class=""><font color="#888888" class=""><div class=""><br class=""></div><div class="">- Joe</div></font></span><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class=""><div class="h5"><div class="">On Jan 25, 2016, at 12:59 AM, David Turnbull via swift-users &lt;<a href="mailto:swift-users@swift.org" target="_blank" class="">swift-users@swift.org</a>&gt; wrote:</div><br class=""></div></div><div class=""><div class=""><div class="h5"><div dir="ltr" class="">On Sun, Jan 24, 2016 at 9:55 PM, Chris Lattner <span dir="ltr" class="">&lt;<a href="mailto:clattner@apple.com" target="_blank" class="">clattner@apple.com</a>&gt;</span> wrote:<br class=""><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word" class="">Are you willing/able to share the code for your project?&nbsp; That definitely sounds strange,</div></blockquote><div class=""><br class=""></div><div class="">Soitenly: <a href="https://github.com/AE9RB/SwiftGL" target="_blank" class="">https://github.com/AE9RB/SwiftGL</a></div><div class=""><br class=""></div><div class="">The 28,000 lines of loader code are fine. The 6,000 lines of math libraries are the problem.</div><div class=""><br class=""></div><div class="">I'm sure it's something to do with prototypes and generics. You can change in Types.swift:<br class=""></div><div class=""><span style="color:rgb(167,29,93);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap" class="">public</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap" class=""> </span><span style="color:rgb(167,29,93);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap" class="">protocol</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap" class=""> FloatingPointScalarType </span><span style="color:rgb(167,29,93);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap" class="">:</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap" class=""> ScalarType</span><br class=""></div>to:<div class=""><span style="color:rgb(167,29,93);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap" class="">public</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap" class=""> </span><span style="color:rgb(167,29,93);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap" class="">protocol</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap" class=""> FloatingPointScalarType </span><span style="color:rgb(167,29,93);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap" class="">:</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap" class=""> ScalarType, FloatingPointType</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap" class=""><br class=""></span></div><div class="">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.</div><div class=""><br class=""></div><div class="">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.</div><div class=""><br class=""></div><div class="">-David "nyuk nyuk nyuk" Turnbull<br class=""></div><div class=""><br class=""></div></div></div></div></div></div><span class="">
_______________________________________________<br class="">swift-users mailing list<br class=""><a href="mailto:swift-users@swift.org" target="_blank" class="">swift-users@swift.org</a><br class=""><a href="https://lists.swift.org/mailman/listinfo/swift-users" target="_blank" class="">https://lists.swift.org/mailman/listinfo/swift-users</a><br class=""></span></div></blockquote></div><br class=""></div></div></blockquote></div><br class=""></div></div>
</div></blockquote></div><br class=""></div></body></html>