Files
Michael Simard 872354b834 Initial commit: SimVision tvOS streaming app
Features:
- VOD library with movie grouping and version detection
- TV show library with season/episode organization
- TMDB integration for trending shows and recently aired episodes
- Recent releases section with TMDB release date sorting
- Watch history tracking with continue watching
- Playlist caching (12-hour TTL) for offline support
- M3U playlist parsing with XStream API support
- Authentication with credential storage

Technical:
- SwiftUI for tvOS
- Actor-based services for thread safety
- Persistent caching for playlists, TMDB data, and watch history
- KSPlayer integration for video playback

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 22:12:08 -06:00

17 lines
779 B
Swift

import QuartzCore
var _buffer = ContiguousArray<Int?>(repeating: 1, count: 102_400)
var startTime = CACurrentMediaTime()
_buffer.removeAll(keepingCapacity: true)
_buffer.append(contentsOf: ContiguousArray<Int?>(repeating: nil, count: 102_400))
var diff = CACurrentMediaTime() - startTime
print(diff)
_buffer = ContiguousArray<Int?>(repeating: 1, count: 102_400)
startTime = CACurrentMediaTime()
(0 ..< _buffer.count).forEach { _buffer[$0] = nil }
diff = CACurrentMediaTime() - startTime
print(diff)
let ass = #"{\alpha&H00&\t(1700,2000,\alpha&HFF&)\blur1\fsp1\fn方正兰亭特黑长_GBK\fs13\frz1.33\c&H312A17&\b1\t(65,1982,\blur4.5)\pos(142.51,66.32)}拉斯维加斯 城{\fsp0}界"#
let styleArr = ass.components(separatedBy: CharacterSet(charactersIn: "{}"))
print(styleArr)