Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Accessing a Dictionary containing Vectors results in String allocations on iOS. #1
On iOS (only), assigning a property from a
This was tested with the latest AIR Beta SDK (version 26.0.0 build 112), and several iOS devices using iOS 10.3.2. On Android and Desktop, there are no allocations.
Adobe Tracker Issue: https://tracker.adobe.com/#/view/AIR-4115729
Steps to Reproduce
The class StringAllocationIssue.as constitutes a minimal sample that showcases the problem by accessing a Dictionary once per frame, and StringAllocationIssue.flm shows the analysis of this application on an iPhone 6S. You'll see that once per frame, there are three String allocations; those do not happen on Android or Desktop.
When using an Array instead of a Vector, there are no allocations.