Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Avoid memcpy while retrieving data from dynars (speed up)
[simgrid.git] / src / xbt / set.c
index aa42896..ff05014 100644 (file)
@@ -156,7 +156,7 @@ gras_error_t gras_set_get_by_id      (gras_set_t     *set,
 
   /* Don't bother checking the bounds, the dynar does so */
 
-  gras_dynar_get(set->dynar,id,dst);
+  *dst = gras_dynar_get_as(set->dynar,id,gras_set_elm_t *);
   DEBUG3("Lookup type of id %d (of %lu): %s", 
         id, gras_dynar_length(set->dynar), (*dst)->name);