ecere/com/Containers/Array: Performance tweak
authorJerome St-Louis <jerome@ecere.com>
Thu, 28 Apr 2016 20:02:53 +0000 (16:02 -0400)
committerJerome St-Louis <jerome@ecere.com>
Sat, 2 Jul 2016 20:41:04 +0000 (16:41 -0400)
- No longer invoking the String/Class conversion here
- OnUnserialize is not used for libec parsing

ecere/src/com/OldList.ec
ecere/src/com/containers/Array.ec

index 70491c1..8f2d739 100644 (file)
@@ -3,7 +3,7 @@ namespace sys;
 import "instance"
 
 #ifdef _DEBUG //MEMINFO // _DEBUG
-#define DEBUG_LISTS
+//#define DEBUG_LISTS
 #endif
 
 public class Item : struct
index 5bbf4c3..739fadc 100644 (file)
@@ -26,7 +26,7 @@ public:
 
    void OnUnserialize(IOChannel channel)
    {
-      Array array = eInstance_New(_class.fullName);
+      Array array = eInstance_New(_class); //.fullName);
       uint count, c;
       Class Dclass = class(D);
       channel.Get(count);