Fast and fastest string building

Posted on 2009-04-22
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.
Question by:collages
    1 Comment
    LVL 24

    Accepted Solution

    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....


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    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…
    Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
    The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
    The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.

    737 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

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now