-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
이미지 처리 및 캐싱 모듈 수정 #98
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니당!
// Created by 장재훈 on 2022/12/10. | ||
// | ||
|
||
import UIKit.UIImage |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
필요한 모듈만 import 하는거 👍
private let cache = NSCache<NSString, NSData>() | ||
private let cache: NSCache = { | ||
let cache = NSCache<NSString, NSData>() | ||
cache.totalCostLimit = 52428800 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
혹시 이 totalCostLimit
은 어떻게 계산해서(?) 나온 값인가요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
50MB 인데요
저희 Storage 에 4명이서 마구마구 올려둔 이미지 용량이 총 80MB 이더라구요
그리고 앱 메모리를 얼마나 쓰냐 생각해봤을때 캐시가 100MB 라고 하면 넘 많은것 같아서 50MB 정도가 적당하겠다 싶었읍니다
리뷰 감사합니당 ~ |
제출 전 필수 확인 사항:
작업 내용: