Excerpts from Geoffrey Sneddon's message of Sat May 23 10:40:26 -0400 2009: > - Investigate moving the whole state-machine to one big switch > statement within the parse method (this shouldn't make the codebase > messy, IMO, and it avoids the function call overhead, which is > currently a non-negligible amount of our expense).
I recall doing some light performance testing, and finding that the switch statement ended up taking more time, because PHP will then perform an O(n) lookup instead of a function hashtable lookup, and the n factor ends up outweighing the reduced constant factor. I recommend doing some more benchmarks before putting in the effort of doing this. Cheers, Edward --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "html5lib-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/html5lib-discuss?hl=en-GB -~----------~----~----~----~------~----~------~--~---
