nsomar / OAStackView

Porting UIStackView to iOS 7+
MIT License
2.14k stars 200 forks source link

OAStackView is very slow. #61

Closed shiratsu closed 8 years ago

shiratsu commented 8 years ago

I would like to use OAStackView. I am creating such an attaching view. I am checking on simulator. But it is very slow. To open this view takes around 8 seconds. According to my investigating,,,to use several module(uiview,uilabel and uiimageview) take a long time such a 8 seconds.

are there way how to solve it? 2015-10-16 19 56 05

delebedev commented 8 years ago

Can you please attach time profiler screenshot showing what exactly is "slow"? View inspector screenshot with view hierarchy might also help

shiratsu commented 8 years ago

Sure.I wonder you could check the following log

----------------------
shotworks_for_ph2_by_swift.PushSettingVCL
loadView()
Optional(2015-10-17T14:49:32.906+0900)
----------------------
----------------------
shotworks_for_ph2_by_swift.PushSettingVCL
viewDidLoad()
Optional(2015-10-17T14:49:41.685+0900)
----------------------

It took 9 seconds from 'loadview' to 'viewDidLoad'. I also attached hierarchy.

2015-10-17 14 53 38
shiratsu commented 8 years ago

I have updated program. I attached hierarchy again. I am using 3 oastackview.

2015-10-17 18 06 13
bencallis commented 8 years ago

Have you profiled it in instruments using the time profiler?

shiratsu commented 8 years ago

Oh,I see.I have not used the time profiler at this time.So I will try it.

nsomar commented 8 years ago

@shiratsu any update on this?

shiratsu commented 8 years ago

Sorry,please wait.I will post result within end of this year.

shiratsu commented 8 years ago

I'm sorry for very late replying. I have checked it. On iOS8,xcode 7.1,Swift 2.1 Custom UIView is very slow.

My custom view and also OAStackView are slow. 'initWithCoder method' is very slow. I attached capture of time profiler. 2015-12-08 12 16 05

shiratsu commented 8 years ago

I attached another capture. 2015-12-08 13 02 44

shiratsu commented 8 years ago

I might get answer. In iOS8-Xcode7,I am using 'HiraginoSans' as custom font. But this font name is not available on iOS8. It is from iOS9. So,My application have taken a much time for downloading above font.

I'm sorry.Maybe,OAStackView does not have relation about slow loading.