I've been working on porting ktfmt and ktlint to r...
# feed
h
I've been working on porting ktfmt and ktlint to rust. Currently the speed up is 13-192x. Would love some more contributors if anyone is interested! github.com/Hexay/ktrs
🙏 5
👀 5
K 4
y
Is the speedup including JVM startup time? If so, it'd be interesting to see this compared against a GraalVM version of ktfmt and ktlint.
h
Yes they are end-to-end wall times, which to be fair does inflate the single-file rows. Whole projects are still massively faster. Compared to native (which is faster than jar), multi project comes out at 8.7x faster.
thank you color 1
p
Are you planning to keep the ported versions up-to-date with the original projects?
h
Yes, currently both 1.8 and 2.0 alpha for ktlint are supported. The project does differ in small ways by fixing some upstream bugs. Any recommendations on how to progress it further?
p
I do not have any recommendations other than keep up the good work 😉 The speed gains that you have realized are impressive, but I have never experienced the speed as a big bottleneck myself.
h
Thanks! I actually agree with you, speed or memory isn’t much of a bottleneck for these projects, just interesting to see what can be done and giving it a shot