|
发表于 2013-2-28 21:13:37
|
显示全部楼层
这语文....贴主sbfk开帖就说了自己不懂音频开发不懂c++, 我在46楼写了回帖的emailtim才是音频软件jplay的开发者了,farrel还问sbfk为啥搞不懂。谁管他啊。
引用一下emailtim
Where did this render loop code come from (JPLAY, Micro$oft or some other vendor)?
For critical calculations, we used to dump the resulting assembly code so we could calculate the exact time it would take on each platform.
We would then make an optimized variant of the code for each platform (or group of platforms) and then pull the fastest platform specific variant in at build time (e.g. pointer arithmetic versus array indexes, etc.).
I am surprised they had print statements in the loop without #ifdefs or equivalents to completely remove it at optimized build times.
They also did a lot of needless redundant cut-and-pastes which bloats the code size.
They must not be used to writing for restricted space and low end processors.
总之emailtim在别的帖子里也写了jplay的改进方式,印象里和thinlace解释的差不多,但是软件使用者只用大概知道其怎么改进就可以了,搞软件的自然可以去copy.... |
|