libopus's/daala's/any xiph project's codebase doesn't look like source code but low quality decompiled code.
2 char variable names, no spaces whatsoever, no newlines whatsoever, 2-space indents, complete lack of inlined functions, cryptic non-standard names (granulepos is what the rest of the world calls PTS, wtf), using temporary variables so unnecessarily as if modelling how a decompiler might use registers.
The main culprit for this is always high on dr pepper for some reason.
@lynne maybe the reference implementation was in assembly? :P
@kick @Wolf480pl Are you a dr pepper person too 😛.
I don't mind the style as much as the lack of optimizations such a style demands.
When I rewrote Daala's CDF EC code it was around twice as fast, and its not like the code was long or did much.
Grated, this is reference code in a reference implementation so it doesn't have to be fast but it should at least be understandable by us non-dr-pepperians.
A Mastodon instance for people interested in multimedia, codecs, assembly, SIMD, and the occasional weeb stuff.