Re: Native Cocoa vs Java performance question
Re: Native Cocoa vs Java performance question
- Subject: Re: Native Cocoa vs Java performance question
- From: Sheehan Olver <email@hidden>
- Date: Thu, 10 Apr 2003 21:09:41 -0500
>
I did a quick test where I create an NSMutableDictionary and add 50000
>
objects. I created a similar test in Java using a HashSet.
Though I agree that the best solution is probably to do it in java (as
for this situation java is plenty fast speed wise, keeps your backend
cross platform, and you can always do a front end in Cocoa-Java or even
Objective-C with the Java Bridge), I did want to suggest that you try
casting the NSMutableDictionary to a CFMutableDictionary (not sure if
thats the correct name). Then you can use the equivalent C functions
instead of sending messages. Assuming these functions are not
implemented with Objective-C, this could result in significant speed
up, and probably faster than java at max optimization. Plus, I believe
the CF classes are Open Source, so your program would be theoretically
cross platform.
Hope that helps,
Sheehan Olver
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.