fix: ajouter un commentaire TODO pour le comportement des systèmes pull et push

This commit is contained in:
Julien Calixte
2025-01-02 10:24:40 +01:00
parent 746eae7571
commit b590204fe5
2 changed files with 6 additions and 4 deletions

View File

@@ -1,13 +1,17 @@
<template>
<div class="flow-conclusion">
<!-- TODO: Mettre ici le comportement en pull system et en push system.
En push system, on voit un goulot d'étranglement.
En pull system, on voit petit à petit du danse avec une passation de plus en plus facile.
Il n'empêche que dans les deux systèmes il y ai de la création de défaut -->
<p>
Pull system wins! The fact that
<a
target="_blank"
rel="noopener noreferrer"
href="https://journals.aps.org/pre/abstract/10.1103/PhysRevE.96.052303#:~:text=The%20%E2%80%9Cfaster%2Dis%2Dslower,evacuation%20time%20can%20be%20achieved"
>faster is slower</a
>
>faster is slower
</a>
is counter-intuitive but it is a fact. The more we push the more we are
slowing down the system.
</p>

View File

@@ -16,8 +16,6 @@ export const getMean = (data: number[]) =>
export const getRound = (data: number, total: number) =>
(Math.round(100 * (data / total)) / 100 || 0).toFixed(2)
export const clone = (data: any) => JSON.parse(JSON.stringify(data))
export const shuffleArray = <T>(array: T[]) => {
let currentIndex = array.length,
randomIndex