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.

Why Ruby's attr_accessor is faster than getters and setters

45 pointsby sethvargoover 10 years ago

2 comments

davidcelisover 10 years ago
I still don't know "why" even after reading this. The highlighted block of C doesn't tell me anything and neither does the comment on it. As far as I can tell, this is just a benchmark with no explanation.
评论 #9041056 未加载
评论 #9040865 未加载
评论 #9040872 未加载
wrlover 10 years ago
Really enjoying this "Please sign in to save view settings" modal box that pops up when I try to move the divider between the post and the source code. Who thought that was a good idea?
评论 #9040886 未加载
评论 #9040742 未加载