How to speed up an app using classes and functions?

5 vues (au cours des 30 derniers jours)
Mateus Banroc
Mateus Banroc le 9 Jan 2020
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!

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Migrate GUIDE Apps dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by