Mapping of NSString to int using what? NSDictionary?

I need to read say (for example) 100 million words from text files and count how many times a word appears over those text files. If I use NSString -> NSNumber, I end up having millions of NSNumber objects as I increment the count for each word. We run into memory problems really quickly. Is there a better way to do this?

corydoras wrote:
std::map is not exactly an Objective C way of doing it (:
That is correct. It is an Objective-C++ way of doing it. You asked for a "better" way, not an "Objective-C" way.

Similar Messages

  • The following mapped Topic IDs were not used in any topic:

    Hi, I just start my Help File - RH8. One topic only. If it's writing in english "NewTopic1" compiling OK.  If it's writing in Portuguese "NovoTópico1", when compile get this Note.
    "The following mapped Topic IDs were not used in any topic:"
    Nothing at the "Remoe Unused MAP IDs..." can you help? Thanks.

    Hi,
    What happens if you use a find and replace to replace all characters with umlauts in the topics before importing them? (Backup your files first though)
    Greet,
    Willam

  • Google maps having trouble loading when using 3g

    it's fine when i'm at home connected to my home network, but when i'm away from home and using 3G it, doesn't load. how can i get it to work when away from the house?

        Let's ensure Google Maps is up and running. What device are you using? How long has this issue been occurring? Do other data services work while on 3G?
    YosefT_VZW
    Follow us on Twitter @VZWSupport

  • I just bought a recertified Mac Mini, and I wonder if anyone here knows if it's possible to hook up my Mac flat screen LCD monitor to it using what adapters? I currently have a DVI to ADC adapter connected to my G4 Powermac.

    I just bought a recertified Mac Mini core duo - it's not the newer model-, and I wonder if anyone here knows if it's possible to hook up my Mac flat screen LCD monitor to it  and using what adapters? I currently have a DVI to ADC adapter connected to my G4 Powermac.
    The company I bought it from is not Apple, and I may regret that. It was in my price range, though.
    This is the first time I've used this community, and I've been a Mac owner since 2000. Thanks in advance!

    when you say "Mac flat screen LCD", do you mean this:
    http://www.ares-woo.com/christmas2005/images/pc_cine.jpg
    if it is, you might wanna try this:
    http://store.apple.com/us/product/MB570Z/A?mco=MTY3ODQ5OTY

  • How to configure one dsl connection and one public ip in cisco router and map to one interface for using exchange server

    how to configure one dsl connection and one public ip in cisco router and map to one interface for using exchange server

    Hi ,
     Have you got any additional public IP Address from your service provider , If yes on router you can have static route for those additional IP Address pointing to your ASA  outside interface . 
    Accordingly you can configure NAT 
    HTH
    Sandy . 

  • How to convert word doc into pdf - which product of adobe i need to use- what upgrades - am a newbie

    How to convert word doc into pdf - which product of adobe i need to use- what upgrades - am a newbie -  simple answers please - Thanks in advance.

    @Pipeline2007 - which version of Microsoft Office have you got? Older versions of Acrobat aren't compatible with the latest versions of Office, see this link for info:
    http://helpx.adobe.com/acrobat/kb/compatible-web-browsers-pdfmaker-applications.html

  • Using what I believe is image capture, how do I go about pulling up a scanned document and attaching it to send it via email?

    Using what I believe is the app Image Capture, exactly how do I go about scanning and attaching a PDF document in order to email it?  After scanning it I'm having trouble locating it while attempting to attach it to an email.  Thanks.

    At the bottom left of the Image Capture window is a drop down menu called Scan To which will let you choose where your scan will be sent. Create a folder on your desktop named Scans and send your scans to it. Then rename the scan to whatever will help you remember what it is.
    Then when in Mail you can click on Attach and find the Scans folder and attach your scan.

  • How to create interactive map in SAP Visual Business using SAP UI5 SDK

    Hi,
    Please tell me,
    How to create interactive map in SAP Visual Business using SAP UI5 SDK.
    Is it possible to create interactive map using VB Control in SAP UI5 SDK..?
    if possible please any one let me know.

    Hi folks, one question:
    We have our development close moved and now it is earlier than originally planned. 
    That means that we maybe can't finish our convenient API and you have to wait till we will release it - early 2015 is planned.
    But there is another option:
    Currently we have a API based on json. The developer has to create json and  to transfer it to the Visual Business control.
    This interface is more used as a low level API and we are developing on top the more convenient one. So all the features are the same.
    It will stay stable & compatible in the future and you can build on it.
    Do you want to use this interface?  
    Then I will publish the documentation.
    Let me know.
    Thanks

  • I subscribe to premium and I can not open the adobe Revel in my ipad I oactualizarlo. I paid through September 2014 -.'s happening I can not use what I have already paid?

    I subscribe to premium and I can not open the adobe Revel in my ipad I oactualizarlo. I paid through September 2014 -.'s happening I can not use what I have already paid?

    Please see the response at:
    Adobe Revel 2.3.2 installation issue

  • Error 1335 the cabinet file data4.cab is corrupt and cannot be used, what do i have to do

    error 1335 teh cabinet file data4.cab is corrupt and cannot be used, what do i have to do

    Hi Max210662,
    Please follow the mentioned kb: http://helpx.adobe.com/creative-suite/kb/install-error-1311-1335-or.html .
    Regards,
    Romit Sinha

  • I am running 10.7.5 and getting Time Machine error The backup disk image "/Volumes/Data/Kathy P's MacBook.sparsebundle" is already in use. what do i do now?

    i am running 10.7.5 on an older MacBook and getting Time Machine error The backup disk image “/Volumes/Data/Kathy P’s MacBook.sparsebundle” is already in use. what do i do now?

    See Pondini's TM FAQs, for starters.

  • When Pages has to update it asks me for a different email than the one I use, What do I do?

    When Pages has to update it asks me for a different email than the one I use, What do I do?

    Update it from that Apple ID, or delete and redownload it.
    (111534)

  • Why sign many contract, I'm only using what I am told to use.?

      Why have many signins for all the product needed for a computer? I only use what I purchase & the parts  used to operate my machine. It's a vehical of communication only to me. I really don't need to sign for every item for the vehical to operate propertly. You & I know it's like a car with many parts. Please make it simple rather than making me a machinist on a computer.
      For new parts, be like an autopart's store. All they need is my name, address, phone number, make & modle of what I have and the part from you I need to purchase, whether it's hardware or software. <Removed by Moderator> Thanks for your coming answer.

    1stAdobeContact which Adobe product or service are you referring too?  I have also removed your e-mail address from your previous post as this is a public forum.

  • How do I find out what program is using what port?

    Hi
    I would like to know what program is using what port? I would also like to know how to close a port. I did a port scan and these ports were open:
    Open TCP Port: 1033 netinfo-local
    Open TCP Port: 20221
    Open TCP Port: 20222 ipulse-ics
    Open TCP Port: 20223
    Open TCP Port: 20224
    Open TCP Port: 20225
    Open TCP Port: 20226
    Open TCP Port: 20227
    Open TCP Port: 20228
    Open TCP Port: 47807
    I am using netbarrier on my computer.
    Thank you for your help.
    iBook G4   Mac OS X (10.4.8)  

    This document may help with your first question:
    "Well known" TCP and UDP ports used by Apple Software Products
    This IANA listing of the port numbers is also useful, if more detailed.
    You can use the Sharing tab of System Preferences to configure the firewall to block all ports except for those specified; you can use the command-line ipfw utility to set up more detailed firewall configurations.
    Matt

  • How can I cache part of an Apple map, so that I can use it when there is no 3G or wifi signal?

    I am going abroad and I know the area to which I am going has no signal or any hope of connection.
    How can I download the part of a map in the area and use it when I get there? Or do I need to download the whole country map from a third party supplier onto my iPad?

    When the map is displayed on the screen, do a screenshot.
    How to take a screenshot on your iPad
    http://www.imore.com/screenshot-ipad
     Cheers, Tom

Maybe you are looking for

  • Exposé hot keys disabled after Time Machine "Delete all backups of file"

    I have been having the same problem that was initially mentioned in this topic: http://discussions.apple.com/thread.jspa?messageID=5850265#5850265 Namely, sometimes after I restart all of my Exposé and Dashboard hot keys have been turned off (but not

  • Time issue how to reset the laeve in 2001 infotype

    Hi All, In my client place, one user maintained the infotype 2001 as 5.82 days out of 7 days quota.Clients wants to make the no of abscences to zero by deleting all leaves from 2001 infotype.By deleting when I went to 2006 quota overview that last on

  • How to dump screen in Windows 7

    How to dump screen in Windows 7 environment. I cannot find the dump screen key on Macbook Air.

  • URGENT. NEED AN ANSWER NOW

    My brother messed with his passcode and he was locked out. I reset his iPad but now we can't remember the password to the email address we used for the AppleID. I tried looking through all my emails but none of them are getting the reset passcode ema

  • Please help resolve this math probelm in labview?

    I try to use fft and ifft to make a filter, to remove some frequencies and then convert to time domain. I have problems to do it. To make it simple I attach a lv 2009 example, which has two component 10 hz and 15 hz input. Can you help me in removing