TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

The Cost of Indirection

2 pointsby JoshMcguiganabout 5 years ago

1 comment

JoshMcguiganabout 5 years ago
Hey HN, author here. I got curious about the performance cost of trait objects vs generics in Rust (and more broadly about the cost of dynamic vs static dispatch), so I created this series of benchmarks comparing the performance implications of various types of indirection in Rust.