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.

Random Acts of Optimization

279 pointsby sledover 9 years ago

9 comments

saosebastiaoover 9 years ago
This brings up a thought that I&#x27;ve had for a very long time. Almost every type of optimization that a programmer could employ is repeatable. It involves matching patterns (&quot;Identification&quot; in the context of this article), analysis (&quot;Comprehension&quot;), and rewriting (&quot;Iteration&quot;).<p>All of these steps can be efficiently automated. And it turns out that compiler writers collectively know about the vast majority of these techniques, but refuse to implement most of them for what I would consider to be the ultimate copout ever: Compile times. I don&#x27;t know about you, but I would take 100x increase in compilation times for a release build over a 2x increase in development time due to manual optimization. I&#x27;m not sure who wouldn&#x27;t, especially if it also allows you to eliminate technical debt, eliminate leaky abstractions, and improve code comprehensibility.<p>Perhaps I&#x27;m being overly idealistic, but I can&#x27;t help but hope for a day that I can work with a high level language and have the compiler take care of optimizations that range from removing redundant elements from struct definitions all the way down to bitshift optimizations like i * 28 == i&lt;&lt;4 + i&lt;&lt;3 + i&lt;&lt;2. And if I have to wait all day long for a release build of something, so be it.
评论 #10474181 未加载
评论 #10473893 未加载
评论 #10474070 未加载
评论 #10474427 未加载
评论 #10475461 未加载
评论 #10474073 未加载
评论 #10473866 未加载
评论 #10476754 未加载
评论 #10473970 未加载
评论 #10474185 未加载
评论 #10474343 未加载
评论 #10474291 未加载
评论 #10474083 未加载
评论 #10475808 未加载
评论 #10474718 未加载
评论 #10474232 未加载
评论 #10476809 未加载
评论 #10474808 未加载
RiotTonyover 9 years ago
Hey everyone, I&#x27;m the author of this article and I&#x27;m glad you&#x27;ve found it interesting. I&#x27;ll be keeping an eye on this thread, so if you have any questions or comments I&#x27;ll address them as soon as I can. I can already see some awesome questions here - looking forward to the discussion.
评论 #10474509 未加载
评论 #10474382 未加载
评论 #10475658 未加载
评论 #10476589 未加载
评论 #10474846 未加载
评论 #10474829 未加载
885895over 9 years ago
&gt;In our case we output the profile buffer to a file and read that into the visualization tool which is conveniently built into Chrome. (You can find more information about the tracing tool here and you can try it out by typing “chrome:&#x2F;&#x2F;tracing&#x2F;” into your Chrome browser. It is designed for web page profiling, but the format of the input profile data is a simple json format that can be easily constructed from your own data.)<p>Clever! Never heard of doing that but it makes sense.
评论 #10474426 未加载
spawndogover 9 years ago
Hi all,<p>I work with Tony the author of the article and answer (or find someone to answer) any league questions you might have. Tony will be most likely be online later in the day as he works remotely with us from Australia.
评论 #10474375 未加载
评论 #10476327 未加载
评论 #10475002 未加载
mmanfrinover 9 years ago
This is an interesting article, but Riot hasn&#x27;t really earned any trust of mine at all as it comes to code quality; for a while they couldn&#x27;t show the damage output of a spell because it caused the user&#x27;s other summoner spell to go on cooldown for 15 minutes[1] when they tried.<p>[1] (<a href="https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;leagueoflegends&#x2F;comments&#x2F;2hvukl&#x2F;smite_damage_should_be_shown_on_the_icon&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;leagueoflegends&#x2F;comments&#x2F;2hvukl&#x2F;smi...</a>)
评论 #10473794 未加载
评论 #10474143 未加载
debacleover 9 years ago
Dota 2 has custom games now. Maybe they can write the new client in Hammer.
Nemo157over 9 years ago
Seems they don&#x27;t want anyone using PIA to access their blog... Tried reconnecting and got denied again, had to switch endpoint country to actually get access.<p>&gt; Error 1008 Access denied. The owner of this website (engineering.riotgames.com) has banned your IP address (108.61.57.217).<p>&gt; Error 1008 Access denied. The owner of this website (engineering.riotgames.com) has banned your IP address (108.61.13.45).
评论 #10474518 未加载
abledonover 9 years ago
p.s. The world finals of the e-sports game &#x27;League of Legends&#x27; made by this company is happening this weekend.<p>Last year&#x27;s event generated more global viewers than the NBA final.
a3voicesover 9 years ago
The biggest optimization would be to change their programming language.
评论 #10474407 未加载
评论 #10474249 未加载