[generator] Remove temporary creation of NSNumber
instances in generated bindings
#12679
Labels
enhancement
The issue or pull request is an enhancement
generator
Issues affecting the generator
iOS
Issues affecting iOS
macOS
Issues affecting macOS
performance
If an issue or pull request is related to performance
Milestone
Current code generation can create multiple
NSNumber
(alone or in an array) instance that needs to be allocated (and soon after disposed).Example (array)
A more direct approach would be to use
CFNumberGetValue
[1] to avoid the extra costs.[1] https://developer.apple.com/documentation/corefoundation/1543114-cfnumbergetvalue?language=objc
The text was updated successfully, but these errors were encountered: