Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Fast and fastest string building

Posted on 2009-04-22
1
Medium Priority
?
421 Views
Last Modified: 2013-11-25
I'm using the foundation classes and I'm finding their string classes to be very slow when parsing a string into smaller strings.

For an iphone app, what's the best way to speed this up?  Are  there time-tested approaches to this problem?  Any pointers to writing my own class in C, benefits, pitfalls and trusted example code is welcome.  Any or all of the above would be very useful.
0
Comment
Question by:collages
1 Comment
 
LVL 24

Accepted Solution

by:
fridom earned 2000 total points
ID: 24250343
Just rememberr Objective-C is a superset to C. Everything you can  do in C can be done in Objective C. So if you insist you can just use plaing char* stuff.
Or anything based upon it.
However is it really that slow? Have you hard figures? if not why not use the convenienses of Objective C? And for parsing Strings maybe you could think about regular expressions for that kind of jobs....

Regards
Friedrich
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

CocoaPods is the best way to manage library dependencies in iOS and OS X projects. By using cocoa pods there is no need of downloading the code from github and copying to your project. There are plenty of open source libraries now available with C…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question