forked from ezyang/htmlpurifier
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commit various optimizations to the Lexer, and add stub file for prof…
…iling the lexer. git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@92 48356398-32a2-884e-a903-53898d9a118a
- Loading branch information
Edward Z. Yang
committed
Jul 22, 2006
1 parent
de5ab5e
commit ca1aefe
Showing
5 changed files
with
140 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
set_include_path(get_include_path() . PATH_SEPARATOR . '../library/'); | ||
|
||
require_once 'HTMLPurifier/Lexer/DirectLex.php'; | ||
|
||
$input = file_get_contents('samples/Lexer/4.html'); | ||
$lexer = new HTMLPurifier_Lexer_DirectLex(); | ||
|
||
for ($i = 0; $i < 10; $i++) { | ||
$tokens = $lexer->tokenizeHTML($input); | ||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters