by dep_b · 7y ago · 0 comments
Objective-C was often called slow because iteration NSArray was much slower than doing it in C. Well, if you needed to do it fast in Objective-C you wouldn't do it using the user friendly and safe (for 1984) higher level objects.
I think only Rust really allows you to write really safe and still really fast code though.
I clicked through to a performance analysis showing ARC taking about 3/4 the time (in the release build).
You don't really need to be doing a lot of ARC in the inner loops if you don't want to.
Snabb (https://github.com/snabbco/snabb/) is written in LuaJIT . I assume an equivalent project in Rust would be a lot more expensive in implementation time and also lines of code.
There is also Common Lisp and SBCL in particular, which can produce extremely fast code without compromising on safety.