Exit Full View

Feather2 / documentation / Speed.md

Runtime Speed

The runtime performance is on par with Java / Kotlin. I haven't performed any speed tests, but Feather's bytecode is generally identical (or very similar) to that produced by Java/Kotlin.

Due to Kotlin's null-pointer checking, there are cases where Feather will be faster than Kotlin.

For loops such as for a in 0..10 haven't been optimised yet. Currently, it compiled in the same way as iterating over any other Iterable (e.g. a List). This is particularly bad, because a ends up being a boxed Integer, and not a primitive int.-

Compilation Speed

I'm pleased with the compilation speed. I may improve compilation speed by splitting the parsing and code-generation phases across multiple threads. I have an application with dozens of extensions written in Feather, and they take about 5 seconds to compile. That's slow enough to be slightly annoying!

Back to Contents