[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Bob Bailey <bobbaileyjr@y...> |
| Subject: | Re: [Caml-list] Question about string ref and Hashtbl. |
that's what I was doing before I started down this road. I am actually concatinating the strings to make a larger hash of string words... (representing a hierarchical name type thing) SO I am actually copying strings all over the place... I am also reading a new set of data from a file that has information that I need to cross reference... So that's why I am trying to centralize strings. That way I can create integer indexes into a dictionary and save memory by not carrying around large numbers of strings that are really duplicates. thanks though bob --- Karl Zilles <zilles@1969.ws> wrote: > Bob Bailey wrote: > > I am trying to only store the string once in memory. This will allow > me to store the > > index of the string in the dictionary instead of copying the string > all over > > memory. > > You can just pass a string around.. it doesn't actually make a copy of > the data.. what you're passing is just a pointer. > > ------------------- > To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr > Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners __________________________________ Do you Yahoo!? Yahoo! Mail - More reliable, more storage, less spam http://mail.yahoo.com ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners