Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Designing Data-Structure

Designing Data-Structure

Scheduled Pinned Locked Moved Web Development
sysadmindata-structurescryptographyquestionlearning
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    militiaware
    wrote on last edited by
    #1

    i want to build a structure for this case: autocompelte case: i have 500,000 word and phrase, what is the proper data-strcture can i use on the server side while comparing each character inserted to the textbox by the user.... (Tree structure, hash map, has table, ...etc).. of course taking consideration to the time cost.

    Faris Madi Nothing Comes Easy (N.C.E.)

    G 1 Reply Last reply
    0
    • M militiaware

      i want to build a structure for this case: autocompelte case: i have 500,000 word and phrase, what is the proper data-strcture can i use on the server side while comparing each character inserted to the textbox by the user.... (Tree structure, hash map, has table, ...etc).. of course taking consideration to the time cost.

      Faris Madi Nothing Comes Easy (N.C.E.)

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      Is the server going to be used for this "autocompelte" only? Otherwise you shouldn't even consider hogging 10+ MB of memory for this single task. Use a database.

      --- b { font-weight: normal; }

      M 1 Reply Last reply
      0
      • G Guffa

        Is the server going to be used for this "autocompelte" only? Otherwise you shouldn't even consider hogging 10+ MB of memory for this single task. Use a database.

        --- b { font-weight: normal; }

        M Offline
        M Offline
        militiaware
        wrote on last edited by
        #3

        well i'm using cluster.. and each 1MB has a consideration. plus...delaying 10ms can affect on the total performance. some said to use hashmap inside hashmap, some said to use a tree... i'm :confused:

        Faris Madi Nothing Comes Easy (N.C.E.)

        G 1 Reply Last reply
        0
        • M militiaware

          well i'm using cluster.. and each 1MB has a consideration. plus...delaying 10ms can affect on the total performance. some said to use hashmap inside hashmap, some said to use a tree... i'm :confused:

          Faris Madi Nothing Comes Easy (N.C.E.)

          G Offline
          G Offline
          Guffa
          wrote on last edited by
          #4

          militiaware wrote:

          well i'm using cluster.. and each 1MB has a consideration.

          Each megabyte of what? Memory? Network traffic?

          militiaware wrote:

          plus...delaying 10ms can affect on the total performance.

          The total performance of what? Web pages and database queries are executed in parallell, so they don't wait for each other.

          --- b { font-weight: normal; }

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups