Small speed improvement (addProperty)

Issue #416 resolved
Former user created an issue

Automatic migration. Original reporter: "avengre"

Found this on the forums, credit goes to zanir.

Reference thread: http://www.cegui.org.uk/phpBB2/viewtopic.php?f=10&t=2663

Changes access of Property Map for speed improvement.

Reproducibility: N/A

Comments (2)

  1. Martin Preisler

    This definitely seems like a good improvement. Operator [] checks for existance again so find is actually called twice in the current implementation. I will see that this gets upstream and maybe search for more occurences of operator [] after a find call.

  2. Log in to comment