I am developing a project using C++/CLI and WinForms. It is a geometry project, which is why I have to use C++/CLI, because of the C++ geometry library CGAL. I chose to use WinForms for the UI because compared to the other C++/CLI windows UI options it seemed rather easy to use. However, after some research online I realized that WinForms for C++/CLI makes use of managed code and that managed code is oftentimes a factor 2 slower than native code. The project is about implementing a competitive algorithm, so the running time is very important. The project will have a very simple UI form to select some parameters for the project and the running time will only be tracked for the actual computation part of the project, not for the UI interaction.
Will using WinForms, in this case, slow down the running time of the geometrical computations? Or is it okay, because the geometrical part of the code is in an "unmanaged" part. How can I make sure that it is "unmanaged"?