https://kotlinlang.org logo
#random
Title
# random
m

myanmarking

10/26/2023, 11:11 AM
Hello. I’m working on a wrapper value class for units of measure, similar to what compose does with TextUnit, IntSize, etc. I want to make sure my operators are optimised enough so they always use the primitive type and not the boxed one. Is there any way i can check for this ?
atm, messing around with kotlin bytecode android studio feature
p

Piotr Krzemiński

10/26/2023, 11:15 AM
not a direct answer to your question, but perhaps worth taking a look at https://github.com/vsirotin/si-units as they may have already solved this problem?