attachIndeces = (parent) => {

  $tm.start('Attaching Indeces');

  parent.indeces = parent.indeces || {};

  updateNodeTypesIndeces(parent.indeces);
  updateEdgeTypesIndeces(parent.indeces);

  $tm.stop('Attaching Indeces');

  return parent.indeces;

}
This function will cache/index some tiddler properties as javascript
objects for faster access.