Commit 0b05f8cd authored by Moïse Destin's avatar Moïse Destin
Browse files

corrige wasted memory 1

parent 2ed8eacb
Pipeline #4491 passed with stage
in 9 seconds
......@@ -2,8 +2,6 @@
<project version="4">
<component name="ChangeListManager">
<list default="true" id="298fa7eb-9511-4983-9e33-1e1f5e3f9ebe" name="Changes" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Java/Tas.java" beforeDir="false" afterPath="$PROJECT_DIR$/Java/Tas.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Java/TasAjoutCleAleatoire.java" beforeDir="false" afterPath="$PROJECT_DIR$/Java/TasAjoutCleAleatoire.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Java/TasAjoutCleCroissant.java" beforeDir="false" afterPath="$PROJECT_DIR$/Java/TasAjoutCleCroissant.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Java/TasAjoutCleDecroissant.java" beforeDir="false" afterPath="$PROJECT_DIR$/Java/TasAjoutCleDecroissant.java" afterDir="false" />
......@@ -72,7 +70,7 @@
<workItem from="1635251919885" duration="31000" />
<workItem from="1635251962630" duration="689000" />
<workItem from="1635365695090" duration="598000" />
<workItem from="1635770461992" duration="25768000" />
<workItem from="1635770461992" duration="26127000" />
</task>
<servers />
</component>
......
......@@ -36,7 +36,7 @@ public class TasAjoutCleAleatoire {
// S'il y a eu réallocation de mémoire, il a fallu recopier tout le tableau.
swap_analysis.append( tas.getNombreEchange());
// Enregistrement de l'espace mémoire non-utilisé.
memory_analysis.append( tas.getNombreDelementStocker() - tas.getTasSize() );
memory_analysis.append( tas.getTasSize() - tas.getNombreDelementStocker() );
}
......
......@@ -34,7 +34,7 @@ public class TasAjoutCleCroissant {
// S'il y a eu réallocation de mémoire, il a fallu recopier tout le tableau.
swap_analysis.append( tas.getNombreEchange());
// Enregistrement de l'espace mémoire non-utilisé.
memory_analysis.append( tas.getNombreDelementStocker() - tas.getTasSize() );
memory_analysis.append( tas.getTasSize() - tas.getNombreDelementStocker() );
}
......
......@@ -32,7 +32,7 @@ public class TasAjoutCleDecroissant {
// S'il y a eu réallocation de mémoire, il a fallu recopier tout le tableau.
swap_analysis.append( tas.getNombreEchange());
// Enregistrement de l'espace mémoire non-utilisé.
memory_analysis.append( tas.getNombreDelementStocker() - tas.getTasSize() );
memory_analysis.append( tas.getTasSize() - tas.getNombreDelementStocker() );
}
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment