Skip to content

Conversation

@marcrasi
Copy link

@marcrasi marcrasi commented May 11, 2020

A solver in https://github.com/borglab/SwiftFusion that had some differentiableMap and differentiableReduce in its inner loop was spending ~50% of its time in these two operations. Switching the solver to use map and reduce changed this to ~0%.

Making differentiableMap and differentiableReduce @inlinable should fix this. (Though I haven't actually built a toolchain to confirm. This isn't urgent enough that I want to spend time building a toolchain to confirm it, so I'll just wait until this makes its way into a toolchain before confirming.)

@marcrasi marcrasi requested review from dan-zheng and rxwei May 11, 2020 13:56
@marcrasi
Copy link
Author

@swift-ci please test

@marcrasi marcrasi merged commit eaa1051 into swiftlang:master May 11, 2020
@marcrasi marcrasi deleted the make-differentiable-array-ops-inlinable branch May 11, 2020 18:38
rxwei pushed a commit to rxwei/swift that referenced this pull request Jun 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants