Andrey Syvrachev
Andrey Syvrachev
``` Look at the function viewWillAppear, I think following code may help ``` you. ``` CGFloat pageWidth = pagingScrollView.frame.size.width; CGFloat newOffset = neededIndex * pageWidth; pagingScrollView.contentOffset = CGPointMake(newOffset, 0); [pagingScrollView...
So, This is not ASGallery responsibility. But I've decided this problem in my App TimeGallery: https://itunes.apple.com/app/timegallery/id583294307 You have to: -(void)init { library = [[ALAssetsLibrary alloc] init]; ``` // WORKAROUND from...
Hmm, it is not good way to modify loadImage: withImageType: Look inside ASGalleryViewController: (visiblePageForIndex:) You can add following function: -(NSURL_)currentAssetURL { ASGalleryPage_ isv = [self visiblePageForIndex:self.selectedIndex] NSURL\* url = [isv.asset...
I have just profiled whats happening on the "stall moment" You can open perf-kernel.svg in any Browser to look performance Graph [Perf.zip](https://github.com/apple/swift-nio/files/2951000/Perf.zip) Too much objects release in the same moment...
One more possible design - is provide the FAST custom allocator/deallocator (like in std C++) for promises. Which really have preallocated memory & not really calls malloc/free every time object...
@weissi Yes, I think it is reference counting. So we still can use special factories (objects reuse pools) for lightweight create/free objects, attached to each EventLoop. In these pools object...
Yes. Not all. But for example, Channel Handlers may be allocated/deallocated using factory ` let chFactory = currentEventLoop().getFactory() // or createFactoryWithCapacity(1000) let channelHandler = chFactory.createChannelHandler() // real allocation here (or...
Yes, the number of operations is the same, but the moment of operations is not the same. We can make this operations at the app exit, or when no load...
I see. Let's try to fix what we can and test!) Even preventing massive deallocations will improve performance.
Also, as in performance graph I think reference count change not takes a lot of time. There are __swift_retain_HeapObject - means allocation, but not increment reference count only. So lets...