Implement hash map for mj_name2id using djb2 and linear probing.

PiperOrigin-RevId: 499485127
Change-Id: I5aed6549db18b92d7c8a3b7590e50a00ce13a439
This commit is contained in:
Kyle Bayes
2023-01-04 07:57:11 -08:00
committed by Copybara-Service
parent 5261cceb30
commit f1007df013
11 changed files with 404 additions and 106 deletions
+2
View File
@@ -1911,6 +1911,7 @@ public unsafe struct mjModel_ {
public int nuser_actuator;
public int nuser_sensor;
public int nnames;
public int nnames_map;
public int nM;
public int nD;
public int nemax;
@@ -2210,6 +2211,7 @@ public unsafe struct mjModel_ {
public int* name_keyadr;
public int* name_pluginadr;
public char* names;
public int* names_map;
}
[StructLayout(LayoutKind.Sequential)]