Clear Filters
Clear Filters

How to speed up an app using classes and functions?

3 views (last 30 days)
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!

Accepted Answer

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

More Answers (0)

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!