A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Avoid memcpy while retrieving data from dynars (speed up)
[simgrid.git]
/
src
/
xbt
/
set.c
diff --git
a/src/xbt/set.c
b/src/xbt/set.c
index
aa42896
..
ff05014
100644
(file)
--- a/
src/xbt/set.c
+++ b/
src/xbt/set.c
@@
-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);