[swift-dev] Debugging performance regressions?

Pavel Yaskevich pavel.yaskevich at gmail.com
Wed Aug 9 13:33:39 CDT 2017


Hi David,

   What I usually do is - lldb with debug build, or debug build REPL with
":constraints debug on" which is going to print what type checker is doing
   and attach using lldb or Xcode.

   This example definitely belongs in the repo, I will add it right away.

Best Regards, Pavel.


On Wed, Aug 9, 2017 at 11:22 AM, David Zarzycki via swift-dev <
swift-dev at swift.org> wrote:

> Any tips on how to debug performance regressions?
>
> And as aside, if this test is critical enough to cause a revert, why isn’t
> it in the public repo?
>
>
> On Aug 9, 2017, at 14:04, Arnold Schwaighofer <notifications at github.com>
> wrote:
>
> Hi Dave,
> I have reverted this commit because it broke internal bots.
>
> import Foundation
> class P {
>     var x : Int = 0
>     var y : Int = 1
> }
>
> let dist : (P, P) -> Double = {
>   (p : P, s : P)  -> Double in
>     sqrt(Double((p.x-s.x)*(p.x-s.x) + (p.y-s.y)*(p.y-s.y)))
> }
>
> fails now with expression to complex.
>
>> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/apple/swift/pull/11397#issuecomment-321334844>, or mute
> the thread
> <https://github.com/notifications/unsubscribe-auth/ABBbbrS4O6QyW6_j4ksVB-fo2EPtmbWVks5sWfSigaJpZM4Oxfg->
> .
>
>
>
> _______________________________________________
> swift-dev mailing list
> swift-dev at swift.org
> https://lists.swift.org/mailman/listinfo/swift-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20170809/d0c97720/attachment.html>


More information about the swift-dev mailing list