cats-effect icon indicating copy to clipboard operation
cats-effect copied to clipboard

DRY the constant definitions

Open armanbilge opened this issue 7 months ago • 2 comments
trafficstars

We define several constants for JVM in Java files and then again on JS/Native in Scala. I think the Java sources actually produces "less efficient" bytecode on the JVM than on JS/Native, because Scala final vals are directly inlined at each use site. I doubt this makes a difference in practice, but there's no need to maintain two copies of these definitions.

The hardest part of this issue is convincing Daniel S that we aren't trashing performance with this change 😝

armanbilge avatar Apr 04 '25 03:04 armanbilge