foundationkit / FoundationKit

Everything that really should be in Foundation, but isn't. Future-proof with ARC
Other
80 stars 9 forks source link

FKLogToString Performance #41

Closed myell0w closed 13 years ago

myell0w commented 13 years ago

Seems pretty bad:

https://skitch.com/m.yellow/f7ycy/instruments https://skitch.com/m.yellow/f7ycg/instruments

MSch commented 13 years ago

How many iterations where that?

I think there is some space for optimization but not that much.

myell0w commented 13 years ago

that was just a simple Log(self.window) in appDidFinishLaunchingWithOptions. the second log seems faster, but the first Log took > 3 sec.

MSch commented 13 years ago

Did you run it on the device or in the simulator?

MSch commented 13 years ago

I just ran the tests:

Test Suite 'FKLogTests' started at 2011-09-29 23:10:18 +0000
Test Case '-[FKLogTests testLog]' started.
Test Case '-[FKLogTests testLog]' passed (0.000 seconds).
Test Case '-[FKLogTests testULLONG_MAX]' started.
Test Case '-[FKLogTests testULLONG_MAX]' passed (0.000 seconds).
Test Suite 'FKLogTests' finished at 2011-09-29 23:10:18 +0000.
myell0w commented 13 years ago

Simulator.

sent from phone

Am 30.09.2011 um 00:28 schrieb Martin Schürrerreply@reply.github.com:

Did you run it on the device or in the simulator?

Reply to this email directly or view it on GitHub: https://github.com/foundationkit/FoundationKit/issues/41#issuecomment-2243982

MSch commented 13 years ago

This bug is also in https://github.com/steipete/PSFoundation/blob/master/Lumberjack/VTPG_Common.m and https://github.com/VTPG/CommonCode/blob/master/VTPG_Common.m