> That's exactly what I'm asking...  How many places are there where we
> explicitly depend on the fact that the address can be used to define
> uniqueness?

All places where strings are compared.

Say, a few thousand places in the code, probably?

Most importantly: Mappings and multiset, identifiers in objects and
programs, switch and string comparison functions.

Especially things like object and program identifiers, switch mappings
and multisets would be dead slow without this optimization.

And hashing a string takes basically no time at all.

Have you measured it to take a lot of CPU somewhere?

--
Per Hedbor
  • 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
            • ... Arne Goedeke
        • ... Martin Stjernholm, Roxen IS @ Pike developers forum

Reply via email to