Search results for

SwiftUI List performance

50,605 results found

Post

Replies

Boosts

Views

Activity

Reply to Swift nested for loops cause performance hit
Sorry, I didn't mean to offer unwanted optimization advice, I was really just trying to emphasize that you'd need a radically different approach to make the problem go away. I don't believe you'll ever find a code optimization that solves the problem without reducing the number of iterations.I will offer one other piece of possibly-unwanted advice. There is no answer to the question you originally asked, because you're running a micro-benchmark, and you're trying optimize prematurely.— The problem with micro-benchmarking is that you're measuring nothing but the performance of the benchmark, and this rarely leads to anything that helps your actual code. The lure of but if I write faster code everywhere, everything will run faster, and so my app will run faster is almost irresistible, but it's actually wrong for all practical purposes.— Since you don't have code that represents what you're actually doing (at least, you haven't shared that with us), you don't even know if you're looking at the thing tha
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Some iPhone can't make or receive calls after MDM handshaking.
We got a problem that some iPhone can't make or receive calls after MDM profile installation.Proceeds in the following order:1. Call to this iPhone from another phone and connection established.2. Send MDM Push and mdmd started.3. We can see the Springboard warning. (which is not shown in normal iPhone (marked bold in the Logs below))4. MDM handshaking finished and mdmd stopped.5. Disconnect phone call.6. Try to make a phone call or receive a phone call again. but outgoing or receiving screen is not appeared.This problem disappears after reboot the device.Anyone seeing similar issue please comment, thank you.Logs:-----------------------------------------------------------------------------------------------------------------------------Jun 15 11:11:01 ChoiHo mdmd[1188] <Notice>: (Note ) MDM: mdmd starting...Jun 15 11:11:01 ChoiHo mdmd[1188] <Notice>: (Note ) MDM: Network reachability has changed.Jun 15 11:11:01 ChoiHo mdmd[1188] <Notice>: (Note ) MDM: Network reachability has changed.Jun 15
0
0
771
Jun ’15
How to find my forum posts?
I am experiencing frustration.I have posted a couple of times on the Swift forum.Every now and again I go back to the forum to see whether there is any new related activity. But the forum receives over a page of posts in a day, so it quickly becomes awkward to find my original posts.Is there some way I can list my posts chronologically? And maybe even see whether any of them has received new activity?On Stack Overflow I just click on my username and can instantly view all of my posts. It makes it extremely easy to subsequently retrieve information -- even a year later!π
4
0
1.9k
Jun ’15
Constraining Self to a protocol's associated type(s)
Consider a protocol P with an associated type Q,protocol P { typealias Q init(_ q: Q) func flatMap(f: Q -> Self) -> Self // Composeable from init and flatMap func map(f: Q -> Self.Q) -> Self // ... There are many others }and a conforming generic type C<T>, where T is constrained to Qstruct C<T> : P { typealias Q = T private let t: T init(_ q: T) { self.t = q } func flatMap<A>(f: Q -> C<A>) -> C<A> { return f(t) } // Compose from init and flatMap func map<A>(f: T -> A) -> C<A> { return flatMap { C<A>(f($0)) } } }This workslet c1: C<Int> = C(42) // t = 42 let c2: C<String> = c1.map { ($0) is the answer } // t = 42 is the answerWith Swift 2.0, I'd expect to be able to use a protocol extension to share all combinators that can be composed from init and flatMapextension P { func map(f: Q -> Self.Q) -> Self { return flatMap { Self(f($0)) } } }But, on removing the implementation of map in C—to expose the shared version in the e
6
0
577
Jun ’15
GLKView doing Logical Buffer Store?
So I switched over my old EAGLView based code to use a GLKView.When I run the profiler with OpenGL ES Analysis, I get a warning about 'Logical Buffer Store.' 0 libglInterpose.dylib 0x100e88190 1 GLKit -[GLKView _resolveAndDiscard] 2 GLKit -[GLKView _display:] 3 GLKit -[GLKViewController _updateAndDraw] 4 libglInterpose.dylib 0x100f587fc 5 QuartzCore CA::Display::DisplayLinkItem::dispatch() 6 QuartzCore CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) 7 IOKit IODispatchCalloutFromCFMessage 8 CoreFoundation __CFMachPortPerform 9 CoreFoundation __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ 10 CoreFoundation __CFRunLoopDoSource1 11 CoreFoundation __CFRunLoopRun 12 CoreFoundation CFRunLoopRunSpecific 13 GraphicsServices GSEventRunModal 14 UIKit UIApplicationMain 15 dig main /Users/bram/apps/Proto/Dig/iOS/main.m:14 16 libdyld.dylib startOpenGL ES performed a logical buffer store operation. This is typically caused by switching framebuffer or
1
0
1k
Jun ’15
Any way to fix Control-O?
As a long-time emacs user, I love that OS X supports many basic emacs commands including Control-O (open-line). In almost all apps it works the same as emacs - inserting a newline at the cursor position and not moving the cursor. In XCode, Control-O is handled strangely - it behaves like the return key, then inserts a space after the cursor, which is inconsistent and not useful to me at least. There are several Insert Newline... choices in Key Bindings, but none of them perform the same operation as Control-O does in other Apple apps - Insert Newline without moving the cursor.Is there any way to get Control-O to behave the same in XCode as it does in every other app?Thanks,Dean
2
0
322
Jun ’15
Reply to Can't archive app: "Command failed due to signal: Abort trap: 6"
If possible, please file a bug for this issue and attach the project which is causing the crash.If you are unable to attach the full project, please look at the build log and try to determine exactly what command is crashing with the Abort 6 message. If it is the compiler, you should be able to open the source file which is crashing, then use Product > Perform Action > Preprocess ... to generate a preprocessed source file which can be attached to the bug and used by us to isolate the crash.
Jun ’15
AVPlayerViewController not behaving in Container View
When embedding the AVPlayerViewController in a container view in iOS9 beta 1 and start playing an audio track, I get this with latest beta. Anyone else able to reproduce?:2015-06-15 22:11:56.266 SampleRadio[860:521233] Unable to simultaneously satisfy constraints. Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)( <NSLayoutConstraint:0x15cd8eb20 UIView:0x15cf58fc0.centerY == AVPictureInPictureIndicatorView:0x15cf58a10.centerY + 10>, <NSLayoutConstraint:0x15cd8ed50 V:[UIView:0x15cf58fc0]-(>=10)-| (Names: '|':AVPictureInPictureIndicatorView:0x15cf58a10 )>, <NSLayoutConstraint:0x15cd8efa0 V:|-(0)-[UIImageView:0x
0
0
967
Jun ’15
Reply to Safari Request Desktop Site Missing
Yes. It is in the 'share' menu (box with arrow pointing upwards).For me, I see three rows of icons - top row is AirDrop, second row is Message/Mail/Notes/etc and third row has 'Add Bookmark', 'Add to Reading List' and if you scroll right the second last icon says 'Request Desktop Site'.Hope that helps.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15