Filter löschen
Filter löschen

How to speed up an app using classes and functions?

3 Ansichten (letzte 30 Tage)
Mateus Banroc
Mateus Banroc am 9 Jan. 2020
Beantwortet: Walter Roberson am 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!

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by