Hallo Wilhelm.
Er dürfte praktisch immer schneller sein, da der Parser hier eine einfache Zeichenkettenoperation ausführt, anstatt einen regulären Ausdrück anwenden zu müssen. (Benchmarking-Scripts liegen im Archiv herum.)
Wieviel laengere Bruchteile von Nanosekunden wird das wohl ausmachen?
Natürlich macht diese eine Stelle im gesamten Programm nicht sonderlich viel aus. Aber du weißt ja: die Summe machts.
Einen schönen Montag noch.
Gruß, Ashura
--
sh:( fo:} ch:? rl:( br: n4:~ ie:{ mo:| va:) de:> zu:} fl:( ss:) ls:[ js:|
„It is required that HTML be a common language between all platforms. This implies no device-specific markup, or anything which requires control over fonts or colors, for example. This is in keeping with the SGML ideal.“
[HTML Design Constraints: Logical Markup]
sh:( fo:} ch:? rl:( br: n4:~ ie:{ mo:| va:) de:> zu:} fl:( ss:) ls:[ js:|
„It is required that HTML be a common language between all platforms. This implies no device-specific markup, or anything which requires control over fonts or colors, for example. This is in keeping with the SGML ideal.“
[HTML Design Constraints: Logical Markup]