Tag

CoreFoundation

0 views collected around this technical thread.

Sohu Tech Products
Sohu Tech Products
Jun 8, 2022 · Mobile Development

Understanding iOS RunLoop: Architecture, Modes, and Message Handling

This article provides an in‑depth technical overview of iOS RunLoop, explaining its relationship to threads, event loops, RunLoop modes, sources, timers, observers, and the underlying Mach message mechanisms, while including original source code excerpts for reference.

CoreFoundationEvent LoopRunLoop
0 likes · 30 min read
Understanding iOS RunLoop: Architecture, Modes, and Message Handling
Tencent Music Tech Team
Tencent Music Tech Team
Mar 10, 2017 · Mobile Development

Investigation of CFAllocatorRef and Custom Allocators for Efficient String Decoding on iOS

The article examines how iOS string decoding failures caused by malformed UTF‑8 bytes can be mitigated by parsing data byte‑by‑byte and using a custom CFAllocatorRef that reuses a fixed‑size stack or pre‑allocated buffer, avoiding heap fragmentation and improving performance.

CFAllocatorRefCoreFoundationCustom Allocator
0 likes · 9 min read
Investigation of CFAllocatorRef and Custom Allocators for Efficient String Decoding on iOS