Skip to content

it would be nice if bp::detail::text::utf_iterator did nothing if FromFormat==ToFormat #260

@andreasbuhr

Description

@andreasbuhr

Because I know that boost.parser uses utf32 internally, I specify all string literals as utf32 strings, like bp::lit(U"keyword").

Now I see in the profiler that quite some time is spent in utf_iterator<4,4,...>::read().
If FromFormat and ToFormat are identical, no transcoding is necessary. It would be nice if utf_iterator skipped all internal recoding if FromFormat and ToFormat are identical. Everything can be forwarded to curr().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions