On Thu, 29 Mar 2012, Stephen R. van den Berg wrote:

Because I'm contemplating an optimisation which would involve making
the string duplication avoidance opportunistic instead of mandatory.

I guess the point here is to skip the hashing in cases where the strings
are large, come from the network/disk and/or are very unlikely to exist
twice. Would it not make more sense to allow for using unhashed strings
explicitly, instead? And in that case I think it would be better to have
a seperate class for that. Otherwise all kinds of code would become much
more complex. Think mapping lookup and similar places, where the ptr of
the string is used.

Then, of cause, all kinds of other places need to be changed to support
"new" unhashed strings, otherwise they would be quite useless, except
for very special situations where some cycles can be saved.
  • Str... Stephen R. van den Berg
    • ... Arne Goedeke
      • ... Stephen R. van den Berg
        • ... Per Hedbor () @ Pike (-) developers forum
          • ... Jonas Walld�n @ Pike developers forum
            • ... Per Hedbor () @ Pike (-) developers forum
              • ... Martin Stjernholm, Roxen IS @ Pike developers forum
    • ... Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum
    • ... Henrik Grubbstr�m (Lysator) @ Pike (-) developers forum
      • ... Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum
        • ... Per Hedbor () @ Pike (-) developers forum
          • ... Per Hedbor () @ Pike (-) developers forum

Reply via email to