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 html5lib-discuss@googlegroups.com To unsubscribe from this group, send email to html5lib-discuss+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/html5lib-discuss?hl=en-GB -~----------~----~----~----~------~----~------~--~---
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4