mirror of
https://github.com/boostorg/quickbook.git
synced 2026-02-03 09:22:17 +00:00
Use C strings in position_iterator.
Copying std::string in position_iterator was taking up a lot of execution time. [SVN r65104]
This commit is contained in:
@@ -248,9 +248,8 @@ namespace quickbook
|
||||
if (err != 0)
|
||||
return err; // return early on error
|
||||
|
||||
typedef position_iterator<std::string::const_iterator> iterator_type;
|
||||
iterator_type first(code.begin(), code.end(), file);
|
||||
iterator_type last(code.end(), code.end());
|
||||
iterator first(code.begin(), code.end(), file.c_str());
|
||||
iterator last(code.end(), code.end());
|
||||
|
||||
size_t fname_len = file.size();
|
||||
bool is_python = fname_len >= 3
|
||||
|
||||
Reference in New Issue
Block a user