cloudsimplus / cloudsimplus

State-of-the-art Framework 🏗 for Cloud Computing ⛅️ Simulation: a modern, full-featured, easier-to-use, highly extensible 🧩, faster 🚀 and more accurate ☕️ Java 17+ tool for cloud computing research 🎓. Examples: https://github.com/cloudsimplus/cloudsimplus-examples

Home Page:https://cloudsimplus.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve performance of HostSimple.addMigratingInVm(Vm)

manoelcampos opened this issue · comments

FEATURE

Instead of keeping a list of VMs that are migrating into a Host,
which requires searching in such a list every time a VM is requested to be migrated
to that Host (to check if it isn't migrating to that same host already),
we can add a migratingHost attribute to Vm, so that the worst-case time complexity
will change from O(N) to a constant time O(1).