Replacing a Rust Enum with a 64-Bit Word Made My Interpreter 17% Faster

Replacing a Rust Enum with a 64-bit Word Made My Interpreter 17% Faster
130 points by metrofun 47 days ago pointersgonewild.com 48 comments

Summary

A performance improvement in a Rust interpreter was achieved by switching from an enum to a 64-bit word, resulting in a significant 17% speed boost. The article details the implications of this change and its impact on efficiency.

Comments (48 of ) ⌛

Loading more comments... ⌛
Scroll down to load more comments
No comments available.
Type to search HN and engineering blog articles
Press Escape to close  |  ↑↓ to navigate  |  Enter to open