From: navarro Date: Fri, 30 Mar 2012 11:59:45 +0000 (+0200) Subject: First step of optim in memory cache X-Git-Tag: v3_7~124^2~6 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/3cac1e53eddb6f3e33d723646cea706da73e0cc9 First step of optim in memory cache --- diff --git a/src/surf/maxmin_private.h b/src/surf/maxmin_private.h index 539b67714a..db79c6faef 100644 --- a/src/surf/maxmin_private.h +++ b/src/surf/maxmin_private.h @@ -23,6 +23,11 @@ typedef struct lmm_element { #define make_elem_active(elem) xbt_swag_insert_at_head(elem,&(elem->constraint->active_element_set)) #define make_elem_inactive(elem) xbt_swag_remove(elem,&(elem->constraint->active_element_set)) +//typedef struct lmm_constraint_light { +// double remaining_over_usage; +// lmm_constraint_t cnst; +//} s_lmm_constraint_light_t; + typedef struct lmm_constraint { /* hookup to system */ s_xbt_swag_hookup_t constraint_set_hookup; @@ -32,14 +37,14 @@ typedef struct lmm_constraint { s_xbt_swag_t element_set; /* a list of lmm_element_t */ s_xbt_swag_t active_element_set; /* a list of lmm_element_t */ - double bound; - double lambda; - double new_lambda; double remaining; double usage; + double bound; + int shared; void *id; int id_int; - int shared; + double lambda; + double new_lambda; } s_lmm_constraint_t; typedef struct lmm_variable {