3 ms·
A single GC stutter that leads to an audiple drop-out means complete failure of the audio program. The article also mentions that: "Don’t use Objective-C/Swift
by iammyIP 10y ago
A single GC stutter that leads to an audiple drop-out means complete failure of the audio program. The article also mentions that: "Don’t use Objective-C/Swift on the audio thread", which can be generalised to "Don't use slow scripting languages where you don't get full control of the audio threads memory layout and data scope/lifetime". Top audio synthesis also gets down to assembly by hand optimising the hot spots.
- umanwizard 10y agoHow exactly is Obj-C a slow scripting language without control of scope?
- iammyIP 10y agoAfaik obj c got some kind of garbage collection and is heaviliy tuned to use apple libs. Since it's so platform-centric, objc is out of the question for me. Maybe fast, but not as fast as c/c++. I would guess around java speed.
- umanwizard 10y agoObjective-C is compiled (to machine language, not bytecode), and does not use garbage collection (it has optional garbage collection, but this is not supported on iOS). What informs your guess that it's "around java speed" ?
- iammyIP 10y agoJust some blurry knowledge mixed with ignorance (50/50), because of its platform-centricity. It's probably a bit faster than Java though.