louiscad
06/07/2019, 9:04 AMflowViaChannel(Channel.CONFLATED) { … }
is channelFlow<T> { … }.buffer(Channel.CONFLATED)
.
Isn't that less efficient as values pass through 2 operators?elizarov
06/07/2019, 9:11 AMlouiscad
06/07/2019, 9:12 AMelizarov
06/07/2019, 9:12 AMlouiscad
06/07/2019, 9:14 AMelizarov
06/07/2019, 9:14 AMlouiscad
06/07/2019, 9:15 AMconflated()
, which is a shorthand for buffer(CONFLATED)
, implemented exactly that way.elizarov
06/07/2019, 9:18 AMlouiscad
06/07/2019, 9:23 AMribesg
06/07/2019, 9:47 AMelizarov
06/07/2019, 11:14 AMlouiscad
06/07/2019, 12:37 PMconflate()
and never call buffer
directly in your app (including through dependencies), then the apk might finally be a little smaller as buffer
could be inlined by R8 into conflate()
, something that might not have been possible or easy to do for R8 if conflate()
was inlined.elizarov
06/07/2019, 2:11 PM