什么是iPhone和iPad上的高速缓存行的大小? [英] What is the cache line size on iPhone and iPad?

查看:389
本文介绍了什么是iPhone和iPad上的高速缓存行的大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是iPhone和iPad上的高速缓存行的大小?

What is the cache line size on iPhone and iPad?

和它的不同的设备和CPU之间的变化有多大?
这是不是太容易找到与谷歌。

And does it vary much between the different devices and CPUs? This is not too easy to find with google.

我需要从挤我的应用程序一些额外的性能。 :)

I need to squeeze some extra performance from my app. :)

推荐答案

那么,在Cortex-A8拥有的 64字节线中的Cortex-A9拥有的 32字节线中,为雨燕和Cyclone我不知道 - 看着可比核心(A15,A57,全蝎,金环蛇),32或64字节很可能。无论哪种方式,还有的至少的跨iOS7机2不同的长度。

Well, the Cortex-A8 has 64-byte lines, Cortex-A9 has 32-byte lines, as for Swift and Cyclone I don't know - looking at comparable cores (A15, A57, Scorpion, Krait) 32 or 64 bytes seems likely. Either way there's at least 2 different lengths across iOS7 machines.

当你注重性能的,虽然,记住标杆是远比理论化更有价值 - 尝试code的许多合理的组合在每一个硬件,你可以把你的手,走什么在实践中发展最快不管是什么'应该'是最好的。

As you're performance-focused though, remember that benchmarking is infinitely more valuable than theorising - try as many reasonable combinations of code on every piece of hardware you can lay your hands on, go with what's fastest in practice regardless of what 'should' be best.

这篇关于什么是iPhone和iPad上的高速缓存行的大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆