为啥我写的AES那么慢

嗯,作为一个渣渣表示,你在做优化之前要先profile的吧,我目测你的时间关键代码在行位移和列混淆,但是,万一不是呢。嗯,就是个建议……Tips for Improving Time-Critical Codems说,首先,你要知道你需要让哪一段代码跑得更快。Know which parts of your program have to be fast.
Know the size and speed of your code.
Know the cost of new features.
【为啥我写的AES那么慢】 Know the minimum work needed to accomplish the job.
另外时间关键代码是不是考虑上simd啊


    推荐阅读