Performance optimisation in assert, suggested by Tim Bunce
authorRafael Garcia-Suarez <rgs@consttype.org>
Sun, 15 Nov 2009 00:34:03 +0000 (01:34 +0100)
committerRafael Garcia-Suarez <rgs@consttype.org>
Sun, 15 Nov 2009 00:34:48 +0000 (01:34 +0100)
commitd0f83c37b9d28134de63d7e3eb8427ccf56ca5ba
tree464ae0213fb4d5ad737dcc45f339fdd942c87f81
parent689e417f571b6d714ad62b19aa8883b3b04f59ed
Performance optimisation in assert, suggested by Tim Bunce

Most compilers will store only a single copy of identical literal
strings. So changing that assert to check the pointer first would
significantly reduce the cost.
scope.h