Maciej Fijalkowski avatar Maciej Fijalkowski committed afb4c5c Draft

further speedups

Comments (0)

Files changed (1)


             raise ValueError(
                 errmsg("Unterminated string starting at", s, begin))
         end = chunk.end()
-        content, terminator = chunk.groups()
-        del chunk
+        content = s[chunk.start(1):chunk.end(1)]
+        terminator = s[chunk.start(2):chunk.end(2)]
+        #content, terminator = chunk.groups()
         # Content is contains zero or more unescaped string characters
         if content:
             if not isinstance(content, unicode):
                 content = unicode(content, encoding)
-        del content
         # Terminator is the end of string, a literal control character,
         # or a backslash denoting that an escape sequence follows
         if terminator == '"':
             char = unichr(uni)
             end = next_end
         # Append the unescaped character
+        del chunk
+        del content
     return u''.join(chunks), end
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.