Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- CoreData Filter
- persistentStoreCoordinator
- iOS Static Library 사용하는방법
- 다익스트라 이해
- codability
- iOS Static Library
- dateFormatter
- CoreData Stack
- Swift LinkedList
- leetcode #01
- 1009번
- 일급 객체
- expensive operation
- 트레일링 클로저
- Clean swift
- CoreData
- Swift closure
- NSManagedObject SubClass
- Swift 고차함수
- 2022 부스트캠프
- NSPredicates
- LightWeight Migration
- CoreData Concurrency
- 스위프트 클로저
- Raw value and Associated value
- Persistent store Coordinator
- Java
- Associated Value
- Swift
- NSSortDescriptor
Archives
- Today
- Total
목록expensive operation (1)
하루를살자
[Swift] Expansive DateFormatter : 어떻게 사용해야할까?
WWDC 나 주변에서 dateFormatter 는 비싼 객체이고, 사용할때 신경써서 사용해야한다는 말을 들었다. 그럼 DateFormatter 를 언제, 어떻게 사용할때 성능저하를 일으킬까? DateFormatter 를 사용하는 데 어떤 부분에서 시간이 오래걸리는지 이 아티클 에서 XCTest 의 Measure 메소드를 사용해서 정리해놓았다. 이 글을 요약하면 아래와같은 상황을 남발할때 성능저하(실행 속도가 느려짐으로 전체 프로그램이 버벅이는 현상) 를 불러올수 있다고 한다. DateFormatter 생성할때. DateFormatter 의 프로퍼티를 변경할때 date(from: String) 을 실행할때 그럼 어떤 식으로 DataFormatter 를 사용해야할까? DateFormatter 가 생성되면 이..
Swift
2022. 6. 9. 22:12