MYSTERY ZILLION တွင် English သို့မဟုတ် Unicode ဖြင့်သာ အသုံးပြုခွင့်ရှိသည်။ ဇော်ဂျီ ၊ ဧရာ စသည်တို့ကို အသုံးပြုခွင့် မရှိ။ Unicode fonts များမှာ Mon3,Yunghkio, Myanamr3 စသည်များ အသုံးပြုနိုင်သည်။ Unicode Guide ကို ဒီမှာ Download ချပါ။ Zawgyi to Unicode Converter
Don't share ebook or software if nobody request. You can find free book websites on here. We are welcome for discussion or asking question instead.

Core data Performance on ios 5

edited November 2014 in iOS Devlopment

Hi everyone,

I need to optimise for core data on ios 5 device. Although it is fast on ios 6 and above, it is very slow on ios 5 device. I saw log like this.

CoreData: annotation: total fetch execution time: 1.0510s for 11 rows.

May I know what is wrong with my codes? Is there other good way to optimise core data performance on ios 5 device?

- (NSArray *)getBusServiceAtBusStop:(NSString *)bus_stop_id
    if (!bus_stop_id)
        return nil;
    NSFetchRequest *fetchrequest = [[NSFetchRequest alloc] init];
    NSEntityDescription *entity = [NSEntityDescription entityForName:@BusRoute
                                              inManagedObjectContext:[self managedObjectContext_busroutes]];
    [fetchrequest setEntity:entity];
    NSPredicate *predicate = [NSPredicate predicateWithFormat:@bus_stop_id == %@", bus_stop_id];
    [fetchrequest setPredicate:predicate];
    NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@bus_service_num ascending:YES];
    [fetchrequest setSortDescriptors:@[sortDescriptor]];
    NSError *error = nil;
    NSArray *arr = [[self managedObjectContext_busroutes] executeFetchRequest:fetchrequest error:&error];
    if (error)
        DLog(@Error: %@", [error localizedDescription]);        
        return nil;
    if ([arr count] 

Image and video hosting by TinyPic


Sign In or Register to comment.