gjesse
03/16/2017, 3:30 PMbenleggiero
03/21/2017, 12:08 AMinline fun Fraction.toThePowerOf(exponent: Fraction): Fraction = Math.pow(this, exponent)
dalexander
03/21/2017, 11:47 AMbenleggiero
03/21/2017, 3:09 PMinline
, though?dalexander
03/21/2017, 3:11 PMdh44t
03/21/2017, 3:12 PMdalexander
03/21/2017, 3:13 PMbenleggiero
03/21/2017, 3:17 PMdh44t
03/21/2017, 3:18 PMdalexander
03/21/2017, 3:18 PMbenleggiero
03/21/2017, 3:19 PMvoddan
03/21/2017, 11:56 PMinline
does not affect performance since the code of the toThePowerOf
function is another function Math.pow
and no operations are performed on the parameters.voddan
03/21/2017, 11:57 PMinline
will worsen the performance because it misleads the JITvoddan
03/22/2017, 12:00 AMinline
+ @InlineOnly
do decrease the method count. This is mostly applicable to libraries, not projectsbenleggiero
03/22/2017, 12:23 AMbenleggiero
03/22/2017, 12:23 AMinline
fighting JIT and I want to learn just how so I can balance the twovoddan
03/22/2017, 12:42 AMbenleggiero
03/22/2017, 12:53 AMmutexkid
03/27/2017, 6:21 PMmutexkid
03/27/2017, 6:21 PMmutexkid
03/27/2017, 6:21 PMmutexkid
03/27/2017, 6:22 PMbenleggiero
03/28/2017, 12:57 AMLOADING_MESSAGE
back out of global scope, since not all classes need to see it. Maybe put it in an object RxConstants
or something.
Also, why are these functions members of all `Observable`s? What's the idea behind that? Genuinely curious.
Other than that looks nice to me. Without being sure how you're using RxUtils.java
or why you built it, that's the most I can say.mutexkid
03/28/2017, 1:27 PMmutexkid
03/28/2017, 1:27 PMLOADING_MESSAGE
-> wouldn’t making that field private have the same effect?mutexkid
03/28/2017, 1:28 PMmutexkid
03/28/2017, 1:29 PMcompose
from rxjava does, except built into the language and with less codemutexkid
03/28/2017, 1:30 PMmutexkid
03/28/2017, 1:30 PMjacek.karaskiewicz
03/28/2017, 3:23 PM