구글은 안드로이드에서 사용되는 IPC 메커니즘인 레거시 C 기반 Binder 드라이버를 삭제하고, Rust로 구현된 새로운 버전으로 교체한다고 밝혔다. 이 변경은 upcoming Linux 7.4 커널 사이클에 적용될 예정이다.
삭제 대상인 기존 C 코드는 약 11,000줄에 달하며, Rust로 rewritten된 Binder 드라이버는 이미 Linux 6.18에 업스트림되었다. 제거 패치는 Greg Kroah-Hartman이 char-misc-next Git 브랜치에 픽업하여 Linux 7.4 머지 윈도우용으로 제출될 예정이다.
The day has finally come. We are dropping the legacy C implementation of the Binder IPC driver in favor of its Rust version. For 15+ years, the C driver has grown increasingly complex, making it incredibly painful to maintain and land new features without tripping over vulnerabilities. The Rust implementation alleviates most of these issues, so it's time for a change. Alice Ryhl has worked hard on the Rust binder for the past couple of years, not only achieving full feature parity but also proving that it can match and often beat the performance of the C counterpart. Having run successfully on Android devices for some time now, we can no longer call this an "experiment". It's time to move on, yank the C code, and focus all new features and optimizations on the Rust driver. Long live the new Rust Binder king!
구글 엔지니어 Carlos Llamas가 위의 패치와 함께 작성한 발언에 따르면, Rust 버전은 기능 면에서 기존 C 드라이버와 완전한 parity를 이루었으며, 성능 측면에서도 경쟁력이 있거나 더 우수함을 보여주었다.
이번 변경은 15년 이상 유지되어 온 C 기반 드라이버의 유지보수 어려움을 해소하고, 새로운 기능 및 최적화 작업을 Rust 드라이버에 집중하기 위한 조치로 해석된다.
출처: www.phoronix.com
댓글
댓글 쓰기