Open jnorthrup opened 5 years ago
I'm taking a look at Arrow-kt and one of my goto's is to find a json parser done in such and such style.
as i try to sift the Arrow from the kotlin, i notice the comment looks a touch out of sync.. i am curious what prompted the refactoring. any performance numbers to share of when vs if pros/cons ? it certainly would be more readable as when{}
Last time we checked it was faster due to the optimization to a table switch but feel free to add a benchmark over an alternative implementation and we will use whichever is fastest, thanks.
https://github.com/47deg/helios/blob/1a0fee60e3380c016cfe2aebd0fd93e5aa67545d/helios-parser/src/main/kotlin/helios/parser/Parser.kt#L379