bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #37494] Performance issue with NSNumber when used as key in an NSDi


From: Richard Frith-Macdonald
Subject: [bug #37494] Performance issue with NSNumber when used as key in an NSDictionary
Date: Wed, 03 Oct 2012 14:00:31 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/536.26.14 (KHTML, like Gecko) Version/6.0.1 Safari/536.26.14

Update of bug #37494 (project gnustep):

                  Status:                    None => Invalid                
             Open/Closed:                    Open => Declined               

    _______________________________________________________

Follow-up Comment #1:

Thanks for the report, but I can't reproduce any problem ...

With the original test program, the test run was too short to give any sort of
reliable indication of the speeds of the different operations, so I increaed
the 'maxkeys' define to 10000000 (two orders of magnitude larger):

2012-10-03 14:48:30.371 nsnumberaskey[553] populating dict (low NSNumber)
2012-10-03 14:48:45.139 nsnumberaskey[553] end population of dict
2012-10-03 14:48:45.415 nsnumberaskey[553] fetching values
2012-10-03 14:48:48.778 nsnumberaskey[553] fetched values
2012-10-03 14:48:57.487 nsnumberaskey[553] populating dict (high NSNumber)
2012-10-03 14:49:12.126 nsnumberaskey[553] end population of dict
2012-10-03 14:49:12.127 nsnumberaskey[553] fetching values
2012-10-03 14:49:16.114 nsnumberaskey[553] fetched values
2012-10-03 14:49:39.502 nsnumberaskey[553] populating dict (NSString)
2012-10-03 14:50:09.438 nsnumberaskey[553] end population of dict
2012-10-03 14:50:09.438 nsnumberaskey[553] fetching values
2012-10-03 14:50:12.757 nsnumberaskey[553] fetched values

There's clearly no significant performance difference between small and large
numbers here.

Perhaps the original problem was on an old version of gnustep, or some other
issue was causing it?




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?37494>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]