Le 11/09/2015 04:15, Jussi Lahtinen a écrit : > If ObjModel.Load() turns out to be the bottleneck, you can convert the MD2 > files (always make back up of the originals) as binary. And thus load them > directly to the arrays, which is much faster. > > > > Jussi >
That routine should be first optimized in Gambas. Remember that the compiler does not detect constant expressions and evaluates everything. For example, if you do successively: a.b.xxx a.b.yyy a.b.zzz you are evaluating a.b several times for nothing. By putting "a.b" in a local variable, you speed things up. If awa is faster than: If awa <> "" And is Split() mandatory? And so on... And the profiler can help there. -- Benoît Minisini ------------------------------------------------------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user