Reduce internal names hash map from factor of 1 to 0.5.
PiperOrigin-RevId: 499762072 Change-Id: Id4ea606b5c534c55665485c9f71412523164d2ed
This commit is contained in:
committed by
Copybara-Service
parent
928eb7a067
commit
0c463366a0
@@ -438,9 +438,11 @@ mjModel* mj_makeModel(int nq, int nv, int nu, int na, int nbody, int njnt,
|
||||
m->nuser_actuator = nuser_actuator;
|
||||
m->nuser_sensor = nuser_sensor;
|
||||
m->nnames = nnames;
|
||||
m->nnames_map = nbody + njnt + ngeom + nsite + ncam + nlight + nmesh + nskin
|
||||
+ nhfield + ntex + nmat + npair + nexclude + neq + ntendon
|
||||
+ nu + nsensor + nnumeric + ntext + ntuple + nkey + nplugin;
|
||||
m->nnames_map = mjLOAD_MULTIPLE
|
||||
* (nbody + njnt + ngeom + nsite + ncam + nlight + nmesh
|
||||
+ nskin + nhfield + ntex + nmat + npair + nexclude + neq
|
||||
+ ntendon + nu + nsensor + nnumeric + ntext + ntuple
|
||||
+ nkey + nplugin);
|
||||
|
||||
#define X(name) \
|
||||
if ((m->name) < 0) { \
|
||||
|
||||
Reference in New Issue
Block a user