[parrot/parrot] 919069: [PMC] Optimized NS's get_pointer_keyed_str VTABLE.

noreply at github.com noreply at github.com
Tue Jul 5 16:31:53 UTC 2011


  Branch: refs/heads/master
  Home:   https://github.com/parrot/parrot

  Commit: 9190699915ccb52ecf4606542da9ddddd45bc1eb
      https://github.com/parrot/parrot/commit/9190699915ccb52ecf4606542da9ddddd45bc1eb
  Author: chromatic <chromatic at wgz.org>
  Date:   2011-07-05 (Tue, 05 Jul 2011)

  Changed paths:
    M src/pmc/namespace.pmc

  Log Message:
  -----------
  [PMC] Optimized NS's get_pointer_keyed_str VTABLE.

This improves the performance of stress2.pasm by 2.725%. Interested parties may
be able to squeeze out another improvement by revising this logic.

Note that this demonstrates a systemic problem regarding the question of "Does
something exist in this hash?" versus "There's something, but it's null." If
PMCNULL ever stops also being 0, this function will return strange results.




More information about the parrot-commits mailing list