Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
Images
App.xaml
App.xaml.cs
Circle.cs
MainWindow.xaml
MainWindow.xaml.cs
OrbitsCalculator.cs
PropertyHolder.cs
README.md
SolarSystem.csproj
SolarSystem.sln
Sphere.cs
Surface.cs
Trackball.cs
TrackballDecorator.cs
Viewport3DDecorator.cs

README.md

Code Tuning and Optimization Homework

Task 1. Solar System

  • You are given a C# application SolarSystem which displays an animated 3D model of the Solar system.
    • Use a profiler to find the places in its source code which cause significant performance degradation (bottlenecks).
    • Provide a screen-shot of the profiler’s result and indicate the place in the source code where the bottleneck resides (name of the file, line of code).
    • Make a quick fix in the source code in order to significantly improve the performance.
    • Test the code after the fix for correctness + performance.

Task 2. Compare simple Maths

  • Write a program to compare the performance of:
    • add, subtract, increment, multiply, divide
  • for the values:
    • int, long, float, double and decimal

Task 3. Compare advanced Maths

  • Write a program to compare the performance of:
    • square root, natural logarithm, sinus
  • for the values:
    • float, double and decimal

Task 4.* Compare sort algorithms

  • Write a program to compare the performance of:
    • insertion sort, selection sort, quicksort
  • for the values:
    • int, double and string
  • Check also the following cases:
    • random values, sorted values, values sorted in reversed order.