Large Arrays of Strings

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Large Arrays of Strings

    Hello,

    I was wondering what the best data structure is to hold a large list of
    strings?

    Currently I am using the ArrayList, which seems to be terribly slow to add a
    large number of strings.

    Any help on this matter would be fantastic.

    Thankyou.

    Maxim.


    Maxim Guest

  2. Similar Questions and Discussions

    1. output large arrays to html
      Hello, I'm looking for ways to 'echo' a single large associative array repeatedly w/ as little overhead as possible. I'm developing a simple...
    2. [PHP-DEV] ZEND_DISABLE_MEMORY_CACHE=0 problematic on large arrays
      http://cvs.php.net/diff.php/ZendEngine2/zend_alloc.c?r1=1.118&r2=1.119&ty=h&num=10 " - Add heap to memory manager. This should improve...
    3. [PHP] HOW DO U SPLIT UP LARGE STRINGS?
      hello, you can use the split() method to break this up into pieces. Unless you are doing a large number of inserts on tables with several keys...
    4. HOW DO U SPLIT UP LARGE STRINGS?
      I've a string with a huge mySQL query, seperated by a semi-colon and then line-break. You can't run this query staright to mySQL (and i dont want to...
    5. parsing large (>1gb) strings..how?
      I've written a short perl script which scan an accidentally (or stupidly) initialised harddrive for lost files. Here is the code i have thus far...
  3. #2

    Default Re: Large Arrays of Strings

    Hi,

    Storing strings in array list will cause boxing and unboxing of strings.
    I think it is better to keep those strings in simple string array.


    Natty Gur, CTO
    Dao2Com Ltd.
    28th Baruch Hirsch st. Bnei-Brak
    Israel , 51114

    Phone Numbers:
    Office: +972-(0)3-5786668
    Fax: +972-(0)3-5703475
    Mobile: +972-(0)58-888377

    Know the overall picture


    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Natty Gur Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139