After reading "High Performance iOS Apps" Chapter7. UIImageView, and lookiing for some information in google.
Image Resizing Techniques
I try to enhancements with resize image related code in a custom UIImageView (AutoDownsampingImageView).
See the orign code OptimizationImageView.swift
// just use
let imageView: AutoDownsampingImageView = AutoDownsampingImageView()
imageView.image = image