jonataslaw / getx

Open screens/snackbars/dialogs/bottomSheets without context, manage states and inject dependencies easily with Get.
MIT License
10.37k stars 1.63k forks source link

Why do not use LinkedList for GetStream LightSubscription? #2081

Open yunze-ola opened 2 years ago

yunze-ola commented 2 years ago

Hi Sir, I am big fan of GetX. Just wondering why do not use LinkedList in GetStream Class for LightSubscription? cos i saw the result from benchmark Unit test and it shows that the MiniStream which implemented with LinkedList got higher performance than GetStream that using List.

jonataslaw commented 2 years ago

Hi @yunze-ola Previously, it was a hypothesis, but the next version of GetX will use notifiers (check the master branch), as fast as GetStream/MiniStream/ValueNotifier