Quadrupling code performance with a "useless" if22 days agohttps://purplesyringa.moe/blog/quadrupling-code-performance-with-a-useless-if/描述了通过改进关键路径循环来优化特定领域压缩器的过程。强调了依赖链问题会阻碍指令级并行处理。提出利用分支预测来预测稳定值,以打破依赖链。建议使用易变类型转换技巧来防止编译器优化移除分支。更多...