Skip to content

A project that shows how the simple task of computing a Mandelbrot set can be split up across multiple threads

Notifications You must be signed in to change notification settings

ColinEberhardt/SwiftMandelbrot

Repository files navigation

Mandelbrot Generation With Concurrent Functional Swift

This is a sample project which shows how the simple task of computing a Mandelbrot set can be split up across multiple threads (and processors) as follows:

generateDatapoints().concurrentMap({
  // a closure that is executed concurrently for each datapoint
  (location: ComplexNumber) in 
  self.computeTterationsForLocation(location)
}, {
  // when the above computation completes, send the data to the UI
  mandelbrotView.render($0)
})

About

A project that shows how the simple task of computing a Mandelbrot set can be split up across multiple threads

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages