--- Charlie Garrison <[EMAIL PROTECTED]> wrote: > I'm no expert (& I'd love to hear from one). But > when I need to do something > similar I use a second data structure for doing the > 'reverse lookup'.
I thought about that, but was put off by the fact that it's a complex structure-- of course I'm only reverse-looking up one field, so it might work. I have an estimated 1-10 lookups per database entry, of which there are ~500 right now. So there might be time savings, but memory requirements might be an issue <contemplating/> --- Fred Eiden <[EMAIL PROTECTED]> wrote: > How about using a different data structure? Maybe a > hash of hashes would > work better. If the value of $xml_index is unique, $xml_index is unique (as is the name value), but the reason for the array is to sort the entries into an order which doesn't necessarily correlate with $xml_index or the name, and I look things up by their order more often than their $xml_index. ~wren __________________________________ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/