Implement hash map for mj_name2id using djb2 and linear probing.
PiperOrigin-RevId: 499485127 Change-Id: I5aed6549db18b92d7c8a3b7590e50a00ce13a439
This commit is contained in:
committed by
Copybara-Service
parent
5261cceb30
commit
f1007df013
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user