Search results for

SwiftUI List performance

50,605 results found

Post

Replies

Boosts

Views

Activity

Reply to CoreData can remove object from to many relationship
Unchanged is the fact that you're presenting the symptom of using a managed object outside of the proper queue while claiming that your code is all written to use the proper queue.Or, if you're using Objective-C, you're not being careful and your occasional[routeDeliveries containsObject:routeDelivery]is returning NO being it is being performed while routeDeliveries is null.
Jun ’15
Reply to OSX Captain crashed
I'm afraid your list of passwords is going to be quite a bit longer than 100 lines. If you only include upper and lower case letters plus the digits 0-9, that is 62 characters. For a 40 character password if you don't repeat any character, that would be approximately 2.78E+64 passwords or 3, followed by 64 zeros. Of course if you include special characters it would be much larger and if you allowed repeats,… well you get the idea.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Where do you go to see your posts?
If I click my name in Welcome First Last, none of the links that pop up take me to a page showing a list of my own posts, or a list of the threads I'm following. Even worse, there's no more emails being sent when someone replies to my threads (despite the fact I am Following them), so if I close the tab I have no way of getting back to my post unless I go dig through the category again to find it. The ADF search doesn't search on the user's name, so searching your own username in hopes it will reveal your posts will leave you very disappointed. Please fix all of these as soon as possible. ADF is very very unusable at the moment.
2
0
137
Jun ’15
Don't put Activity inside our user info area
Click on Welcome First Last at the top and notice the Activity link. I thought this was a link that would show my user account's activity. Intuitive, right? Unfortunately this takes you to the page that lists all forum activity - the same place the Activity button at the top right takes you. Get rid of the Activity link in the user info section, it's out of place and need not be duplicated. Or even better, create a page that does list only our user activity, and keep the link there. 🙂
0
0
97
Jun ’15
App ID no longer exists in the iPhone Program Portal
I had a non-wildcard App ID in the iPhone Program Portal, and my current app in the store uses this App ID. However just recently I logged into the Portal and the App ID no longer exists. It is no longer present in the list found on the App IDs page. When I try to create an App ID with the same reverse-domain and keyword combination, the page responds withAn App ID with Identifier 'com.oplink.dragon' is not available. Please enter a different string.
1
0
319
Jun ’15
App Transport Security
App Transport Security (ATS) is a technology that requires an app to either support best practice HTTPS security or statically declare its security limitations via a property in its Info.plist. ATS is officially documented Bundle Resources > Information Property List NSAppTransportSecurity and Preventing Insecure Network Connections. This post contains a summary of the latest ATS developments. For more background on ATS, see:WWDC 2015 Session 706 Security and Your AppsWWDC 2015 Session 711 Networking with NSURLSessionWWDC 2016 Session 706 What’s New in SecurityWWDC 2017 Session 701 Your Apps and Evolving Network Security StandardsApp Transport Security TipLegacy ATS documentationApp Transport Security and App ReviewAt WWDC 2016 Apple announced that by the end of 2016 App Review will require “reasonable justification” for many ATS exceptions. This is not a technical change in the OS but rather a new App Review policy. The WWDC 2016 presentation has some general background to this but if you’re look
0
0
84k
Jun ’15
Reply to RSA Generating Public Key From Private Key
I would like to be able to set some attributes for the key that I import such as name and other variables can I do that when I import it?You can set some attributes via the various fields in the SecItemImportExportKeyParameters structure you pass to SecItemImport. Beyond that, you'll have to do a SecItemUpdate.I can figure out how to get it once I have saved it.The outItems parameter lets you get a list of items that were actually imported, which you can then use to reference them later on (in a SecItemUpdate call, for example).I need to get the public key from the private key I have imported. I have looked at the source for the security framework and there is a method SecKeyCreatePublicFromPrivate() But this appears to be private and not accesible through the framework. Is there a way to store it in the keychain differently like as a certificate or something that way it makes it easier?Looking at the source for SecKeyCreatePublicFromPrivate it really seems to resolve down to a call to SecItemExport
Topic: Privacy & Security SubTopic: General Tags:
Jun ’15
Agents, Goals and Behaviours - need more tune to fit other games requirements
Hi,I'm hoping Apple developers are reading these forums to get their attention.I was very excited to learn in WWDC 2015 videos about Apple’s new SDK for steering behaviour. The game I recently released uses a library I developed that does exactly that and I was intrigued to see how Apple are going to define the SDK and how good it will be (I’m hoping it will be good in the future). (reference to my library with full sources if interested: Steering Behaviour.From my experience developing the library this is a tricky subject, especially the tuning aspects of it. To get an Agent to follow a path requires careful setting of the agent mass, speed and acceleration parameters (and in Apple's case, the prediction time). More over, if you want to get a formation of Agents following a path, or following a leader in a specific formation this tuning becomes even more challenging.Unfortunately, as it stands right now, Apple’s implementation is very, very hard to tune/debug and it becomes unpredictable. For example, I was
1
0
483
Jun ’15
Reply to Subscripting into array with int-like variable
I don't know what kind of performance gains you hope for by using 8-bit addresses, but consider this code:var array : [UInt8] = [] public func foo(i: Int) -> UInt8 { return array[i + 2] } public func foo8(i: UInt8) -> UInt8 { return array[Int(i + 2)] }This compiles to: pushq %rbp movq %rsp, %rbp addq $2, %rdi jo LBB1_3 movq __Tv8test8bit5arrayGSaVSs5UInt8_(%rip), %rax cmpq 16(%rax), %rdi jae LBB1_3 movb 32(%rdi,%rax), %al popq %rbp retq LBB1_3: ud2and pushq %rbp movq %rsp, %rbp addb $2, %dil jb LBB2_3 movzbl %dil, %eax movq __Tv8test8bit5arrayGSaVSs5UInt8_(%rip), %rcx cmpq 16(%rcx), %rax jae LBB2_3 movb 32(%rax,%rcx), %al popq %rbp retq LBB2_3: ud2The only differences are that the add is 8-bit instead of 64-bit and that the 8-bit value is zero-extended to a 64-bit value before it is used to index the array. Not zero-extending an 8-bit value before using it as an offset would not work, since I don't believe that the x86-64 architecture has instructions for combining addresses with different bit
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Profile Manager Needs to sort members in order by name
I have hundreds of computer in PM and when I have a device group up I know I'm missing one member but I have no way to sort the list by name. Instead it's out of order. For example I have one lab right now with 35 Macs. Currently I have 34 showing up in hte PM group. I have a paper in front of me that has 1-35 and I'm going down the list to cross out the one that's listed since theres no way to sort the list in order.
0
0
185
Jun ’15
[UITableView] - Display a list of html content with image data
My application has once feature: display a list of html content (We are using UITableView)Problem is how to calculate exactly height for any cell base on html content display size.=> my solution is: using an UIWebview inner every UITableViewCell to display content.With once cell, waiting for finishing loading html content (webViewDidFinishLoad delegate). After that, use UIWebview's scrollWidth, scrollHeight (by [[webView stringByEvaluatingJavaScriptFromString:@document.documentElement.scrollHeight] floatValue])to indicate content display size.=> save this crollHeight to database.=> reload cell that has been finished loading.In the next time reload cell, scrollHeight will be used for indicating return value in heightForRowAtIndexpath and calculate view frame in cellForRowAtIndexPath.The problem is similar to resolved, but we have the second problem.Incase network connection is so slow, and if we have img html tag in cell's html content (img src is url from another server) , content size could
0
0
240
Jun ’15
Reply to Subscripting into array with int-like variable
It could still be useful to keep them as UInt8 as long as possible since the optimizer then has access to 4 extra registers (AH through DH) on x86-64, but I don't know if that is relevant in practice.The zero-extension instructions probably have a very small impact on performance, especially compared to the many jumps that are spread throughout the code for bounds checking. If you are very worried about performance, you can compile that specific code as unchecked (gets rid of the jumps), but I don't know if it is possible to do that without putting all unchecked code in a separate module.If you are comfortable reading assembly code, I would recommend that you look at the generated code of the part of the program your profiler tells you is the most CPU intensive. And remember, don't optimize too early, and don't optimize without measuring. I have crypto code in Swift that is very near my C code in performance, but then I have disabled bounds checking.
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15