mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Some optimisation -avoid unnedded objc runtime overheads by using allocation
and deallocation functions directly. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4404 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6dc52d72a6
commit
05f1c5e2a4
3 changed files with 77 additions and 50 deletions
|
@ -160,7 +160,6 @@
|
|||
- (id)initWithBytes: (const void *)value objCType: (const char *)type
|
||||
{
|
||||
typedef _dt = data;
|
||||
self = [super init];
|
||||
data = *(_dt *)value;
|
||||
return self;
|
||||
}
|
||||
|
@ -306,14 +305,6 @@
|
|||
return NO;
|
||||
}
|
||||
|
||||
- (BOOL) isEqual: o
|
||||
{
|
||||
if ([o isKindOf: [NSNumber class]])
|
||||
return [self isEqualToNumber: (NSNumber*)o];
|
||||
else
|
||||
return [super isEqual: o];
|
||||
}
|
||||
|
||||
- (NSString *)descriptionWithLocale: (NSDictionary*)locale
|
||||
{
|
||||
#if TYPE_ORDER == 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue