@@ -143,7 +143,9 @@ var URIMatcher = {
143143 } ,
144144
145145 matchMaybeURIs ( text ) {
146+ const start = Date . now ( ) ;
146147 let match = text . match ( this . _URIMatchingRegExp ) ;
148+ log ( 'matchMaybeURIs matching: ' , Date . now ( ) - start , 'msec for ' , text . length , ' characters text, ' , this . _URIMatchingRegExp . source . length , ' characters regexp' ) ;
147149 if ( ! match )
148150 return [ ] ;
149151 match = [ ...match ] . filter ( maybeURI => (
@@ -752,7 +754,9 @@ var URIMatcher = {
752754
753755 isHeadOfNewURI ( string ) {
754756 this . _updateURIRegExp ( ) ;
757+ const start = Date . now ( ) ;
755758 let match = string . match ( this . _URIMatchingRegExp_fromHead ) ;
759+ log ( 'isHeadOfNewURI matching: ' , Date . now ( ) - start , 'msec for ' , string . length , ' characters text, ' , this . _URIMatchingRegExp_fromHead . source . length , ' characters regexp' ) ;
756760 match = match ? match [ 1 ] : '' ;
757761 return this . hasLoadableScheme ( match ) ? match == string : false ;
758762 } ,
@@ -779,13 +783,17 @@ var URIMatcher = {
779783
780784 getURIPartFromStart ( string , excludeURIHead ) {
781785 this . _updateURIPartFinderRegExp ( ) ;
786+ const start = Date . now ( ) ;
782787 const match = string . match ( this . _URIPartFinderRegExp_start ) ;
788+ log ( 'getURIPartFromStart matching: ' , Date . now ( ) - start , 'msec for ' , string . length , ' characters text, ' , this . _URIPartFinderRegExp_start . source . length , ' characters regexp' ) ;
783789 const part = match ? match [ 1 ] : '' ;
784790 return ( ! excludeURIHead || ! this . isHeadOfNewURI ( part ) ) ? part : '' ;
785791 } ,
786792 getURIPartFromEnd ( string ) {
787793 this . _updateURIPartFinderRegExp ( ) ;
794+ const start = Date . now ( ) ;
788795 const match = string . match ( this . _URIPartFinderRegExp_end ) ;
796+ log ( 'getURIPartFromEnd matching: ' , Date . now ( ) - start , 'msec for ' , string . length , ' characters text, ' , this . _URIPartFinderRegExp_end . source . length , ' characters regexp' ) ;
789797 return match ? match [ 1 ] : '' ;
790798 } ,
791799 _URIPartFinderRegExp_start : null ,
0 commit comments