编译iOS应用程序时使用armv7对性能有什么影响?

发布于 2024-12-25 11:29:09 字数 266 浏览 1 评论 0原文

我们的应用程序使用 foursquare API,我对使用 armv7 架构进行编译有何影响感兴趣:

  • 位置精度
  • 速度(浮点计算)

使用 armv6 架构进行编译在位置精度或浮点计算速度方面是否提供任何相对优势?

有人测试过这个来衡量实际差异吗?或者它太小而没有任何影响?

我想知道使用混合armv6/armv7构建来提高这两个性能元素是否值得,即使它会导致应用程序文件大小名义上的增加?

谢谢。

Our app uses the foursquare API, and I'm interested in how compiling with armv7 architecture impacts:

  • location accuracy
  • speed (floating point calculations)

Does compiling with armv6 architecture provide any relative benefit in terms of location accuracy or speed of floating point calculations?

Has anyone tested this to measure the actual difference? Or is it too small to be of any consequence?

I'm wondering if it's worth it to use a hybrid armv6/armv7 build to improve these two performance elements, even if it results in a nominal increase in the app filesize?

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

君勿笑 2025-01-01 11:29:09

使用armv6架构进行编译是否提供了任何相对的好处
定位精度或浮点计算速度?

我认为这里更大的问题是;您是否关心您的应用程序是否无法在基于 ARMv6 的旧硬件上运行?因为创建仅 ARMv7 版本会限制您的应用程序支持的设备数量。

或者它太小而没有任何影响?

一切都取决于您的情况...但是,根据我的经验,基于 ARMv6 的设备与基于 ARMv7 的设备的时钟速度比编译器在两者之​​间所做的任何优化差异更为重要。

我想知道使用混合armv6/armv7构建是否值得

这是默认设置 - 除非您有特定原因不同时构建两者 - 您应该 - 它将保证在基于 ARMv6 和 ARMv7 的设备上获得最佳结果- 如果您想要最大的兼容性,您唯一的选择是仅针对 ARMv6 进行构建 - 这将保证您,如果编译器可以针对 ARMv7 优化某些地方,您将失去这些优化。

Does compiling with armv6 architecture provide any relative benefit in
terms of location accuracy or speed of floating point calculations?

I think the bigger question here is; do you care if your app doesn't run on older ARMv6 based hardware? Because creating an ARMv7-only build will limit the number of devices your app supports.

Or is it too small to be of any consequence?

All depends on your situation... but, in my experience the clock speed of the ARMv6-based devices vs. the ARMv7-based devices is of much more significant consequence than any optimization differences the compiler makes between the two.

I'm wondering if it's worth it to use a hybrid armv6/armv7 build

This is the default - and unless you have a specific reason not to build for both - you should - it will guarantee best results on both ARMv6 and ARMv7-based devices - your only alternative if you want maximum compatibility is to build for ARMv6 only - which will guarantee you that if there were some place the compiler could optimize for ARMv7 you'd be losing out on those optimizations.

瞳孔里扚悲伤 2025-01-01 11:29:09

如果您在构建时同时启用了 ARMv6 和 ARMv7,并且不限于仅针对活动架构构建 - 最终应用程序将有 2 个二进制映像。一个用于 6,第二个用于 7。换句话说 - 您的选择是:仅针对 V7 构建并且根本不支持 V6,或者同时针对 6 和 7 构建并提供通用二进制文件。最后设备将使用适当的二进制图像。
不确定这很难选择...

我个人更喜欢支持尽可能多的设备,并且不同意 Apple 在 Xcode 4.2 中推动开发人员放弃 ARMv6 设备支持的更改。

If you have both ARMv6 and ARMv7 enabled when building and not restricted to build only for active architecture - the final application will have 2 binary images. One for 6 and second for 7. In other words - your choice is: build only for V7 and does not support V6 at all, or build both for 6 and 7 and provide universal binary. Finally the device will use appropriate binary image.
Not sure that it's hard choose...

I personally prefer to support as much devices as possible and do not agree with Apple on changes in Xcode 4.2 pushing developers to drop ARMv6 devices support.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文