How to speed up an app using classes and functions?

3 次查看(过去 30 天)
Hi everyone, happy new year!
I'm making an app (using figure, uicontrol, uipanel, etc). I have a Class that is the "Main function". In this class I have all the functions for running the app. For now the code has almost 900 lines and something like 20 functions. I could rewrite some functions as classes and call them in the "main class". My question is if my code would run faster by splitting the main class in many other classes.
Thanks!

采纳的回答

Walter Roberson
Walter Roberson 2020-1-9
No, classes are slower than non-class functions.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by