From 515e93007d444c33ca82f7c43b76cf8c228cb9d6 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Thu, 18 Jun 2009 21:34:51 +0000 Subject: =?UTF-8?q?=E2=80=A2=20added=20to=20SPArrayAdditions.h:=20NSArrayO?= =?UTF-8?q?bjectAtIndex()=20inline=20function=20-=20id=20o=20=3D=20NSArray?= =?UTF-8?q?ObjectAtIndex(anArray,=20index)=20:=3D=3D=20id=20o=20=3D=20[anA?= =?UTF-8?q?rray=20objectAtIndex:index]=20-=20this=20speed=20up=20it=20~3?= =?UTF-8?q?=C2=B5s=20per=20call=20-=20replaced=20that=20inline=20function?= =?UTF-8?q?=20for=20such=20calls=20within=20loops=20to=20speed=20up=20them?= =?UTF-8?q?=20=E2=80=A2=20used=20IMP=20function=20pointers=20for=20keepAli?= =?UTF-8?q?ve=20calls=20within=20queryString:=20=E2=80=A2=20set=20-O3=20(F?= =?UTF-8?q?astest)=20compiler=20option=20=E2=80=A2=20allow=20in=20preferen?= =?UTF-8?q?ce=20pane=20"Tables"=20to=20set=20the=20Limit=20up=20to=2050000?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPQueryConsole.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Source/SPQueryConsole.m') diff --git a/Source/SPQueryConsole.m b/Source/SPQueryConsole.m index dab9a9a0..d7f29811 100644 --- a/Source/SPQueryConsole.m +++ b/Source/SPQueryConsole.m @@ -25,6 +25,7 @@ #import "SPQueryConsole.h" #import "SPConsoleMessage.h" +#import "SPArrayAdditions.h" #define MESSAGE_TRUNCATE_CHARACTER_LENGTH 256 #define MESSAGE_TIME_STAMP_FORMAT @"%H:%M:%S" @@ -147,7 +148,7 @@ static SPQueryConsole *sharedQueryConsole = nil; while (i != NSNotFound) { if (i < [messagesVisibleSet count]) { - SPConsoleMessage *message = [messagesVisibleSet objectAtIndex:i]; + SPConsoleMessage *message = NSArrayObjectAtIndex(messagesVisibleSet, i); NSString *consoleMessage = [message message]; -- cgit v1.2.3