gazybara
@gazybara
New Member
Joined: Feb 14, 2024
Topics: 36 / Replies: 998
Reply
RE: speedup simple code

kredka: I already make a detour round an obstacle by adding this code after your function: for o in selection do ( animationobjcheckb=t…

11 years ago
Forum
Reply
RE: i used to be an animater… 🙂

Very cool. Which year U made this?

11 years ago
Forum
Reply
RE: Holdling keys and values inside struct

gazybara: As you saw here I need this solution for soring some file paths. I know that is better to use pathConfig and mapPaths struct but in this c…

11 years ago
Forum
Reply
RE: Holdling keys and values inside struct

Also I found another interesting type of collection (ConcurentDictionary) with more advanced methods but can not be used inside max . I really like th…

11 years ago
Forum
Reply
RE: Holdling keys and values inside struct

I tested now tree different .net collection types (Hashtable, StringDictionary, HybridDictionary) Results are very similar. For test purpose I added 1…

11 years ago
Forum
Reply
RE: Holdling keys and values inside struct

The only problem is : I not know c# programming. That’s why I avoid to use it in my scripts.

11 years ago
Forum
Reply
RE: Holdling keys and values inside struct

After all “mapPath” struct is not a perfect solution for this

11 years ago
Forum
Reply
RE: Holdling keys and values inside struct

Yup. Your example shows everything. Pure mxs and still is a little differece in compare with .net Hashtable. AD for sure need to read all your posts h…

11 years ago
Forum
Reply
RE: Holdling keys and values inside struct

What do you think Denis? After all you are right about .net Hashtable:thumbsup:

11 years ago
Forum
Reply
RE: Holdling keys and values inside struct

Now let’s try to add 5000 and find & collect 500. I decided to not use mapPath struct this time fullPaths = #() ; fileNames = #() randomVFGen …

11 years ago
Forum
Reply
RE: Holdling keys and values inside struct

LData = ListData() –ADD*** gc() ; t1 = timestamp() ; m1 = heapfree for i in 1 to fileNames.count do LData.addKey fileNames[i] fullPaths[i] fo…

11 years ago
Forum
Reply
RE: Holdling keys and values inside struct

hsh = dotNetObject “System.Collections.Hashtable” –ADD*** gc() ; t1 = timestamp() ; m1 = heapfree for i in 1 to fileNames.count where not (hsh.Contai…

11 years ago
Forum
Reply
RE: Holdling keys and values inside struct

Maybe I not test this properly but this is the result if mapPaths.count() != 0 do for p = mapPaths.count() to 1 by -1 do mapPaths.delete p fn storeMP…

11 years ago
Forum
Reply
RE: Holdling keys and values inside struct

I tested tree different methods (mapPath struct, .net Hashtable and ListData struct) This is a example for testing. Let’s try first to add 500 file na…

11 years ago
Forum
Reply
11 years ago
Forum
Page 25 / 69