https://kotlinlang.org logo
Title
s

Slackbot

11/19/2019, 3:22 AM
This message was deleted.
d

Derek Peirce

11/19/2019, 3:53 AM
If you filter things out only if an external flag is enabled, then you may want to check the flag first, and skip the entire process if it is disabled. That way, you aren't checking the same constant over and over again. As for what you saw, if the external flag is
false
, then I would expect you to no longer filter anything out. Are you seeing the same behavior regardless of how the flag is set?
l

liminal

11/19/2019, 4:10 AM
Thanks, Derek. It happens inside a single rxjava chain (list is zipped with flag lookup) and I just tried again and toggling the flag actually makes a difference (my last test was not correct). But I find this filtering logic confusing, so I will have to revisit the RX chain. Thanks again