当我使用How to read data from NSFileHandle line by line?中的DDFileReader读取大文件(大约37M)时,内存使用率会越来越高。
DDFileReader * reader = [[DDFileReader alloc] initWithFilePath:[[NSBundle mainBundle] pathForResource:@"tb_sentence" ofType:@"sql"]];
NSString * line = nil;
while ((line = [reader readLine]))
{
NSLog(@"read line: %@", line);
}
[reader release];
答案 0 :(得分:0)
我已经恢复了这个bug。那是因为我启用了Zombie Objects.Closed it,