René's URL Explorer Experiment


Title: Efficiently processing immutable text | sigcpp

Open Graph Title: Efficiently processing immutable text

X Title: Efficiently processing immutable text

Description: Introduced in C++17, the STL class std::string_view provides more efficient ways than std::string to process immutable (read only) text data. It also provides a safer means to perform read-only operations on character arrays. Overall, using std::string_view for read-only operations on text data can improve execution speed as well as reduce both main-memory usage and executable size. It can also make programs safer and more maintainable. This is Part 1 of a 3-part series on std::string_view. This part focuses on efficiency of std::string_view over std::string. Part 2 focuses on safety. Part 3 provides guidelines for using std::string_view.

Open Graph Description: Introduced in C++17, the STL class std::string_view provides more efficient ways than std::string to process immutable (read only) text data. It also provides a safer means to perform read-only operations on character arrays. Overall, using std::string_view for read-only operations on text data can improve execution speed as well as reduce both main-memory usage and executable size. It can also make programs safer and more maintainable. This is Part 1 of a 3-part series on std::string_view. This part focuses on efficiency of std::string_view over std::string. Part 2 focuses on safety. Part 3 provides guidelines for using std::string_view.

Opengraph URL: https://sigcpp.github.io/2020/04/03/efficiently-processing-immutable-text

Generator: Jekyll v3.9.3

direct link

Domain: sigcpp.github.io


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"BlogPosting","dateModified":"2020-04-03T00:00:00+00:00","datePublished":"2020-04-03T00:00:00+00:00","description":"Introduced in C++17, the STL class std::string_view provides more efficient ways than std::string to process immutable (read only) text data. It also provides a safer means to perform read-only operations on character arrays. Overall, using std::string_view for read-only operations on text data can improve execution speed as well as reduce both main-memory usage and executable size. It can also make programs safer and more maintainable. This is Part 1 of a 3-part series on std::string_view. This part focuses on efficiency of std::string_view over std::string. Part 2 focuses on safety. Part 3 provides guidelines for using std::string_view.","headline":"Efficiently processing immutable text","mainEntityOfPage":{"@type":"WebPage","@id":"https://sigcpp.github.io/2020/04/03/efficiently-processing-immutable-text"},"url":"https://sigcpp.github.io/2020/04/03/efficiently-processing-immutable-text"}

NoneIE=edge
og:localeen_US
og:site_namesigcpp
og:typearticle
article:published_time2020-04-03T00:00:00+00:00
twitter:cardsummary

Links:

Homehttps://sigcpp.github.io/
Resourceshttps://sigcpp.github.io/resources
Abouthttps://sigcpp.github.io/about
Creditshttps://sigcpp.github.io/credits
Sean Murthyhttps://smurthys.github.io
Part 2https://sigcpp.github.io/2020/04/07/safely-processing-immutable-text
Part 3https://sigcpp.github.io/2020/04/20/guidelines-for-processing-immutable-text
std::string_viewhttps://en.cppreference.com/w/cpp/string/basic_string_view
string.viewhttps://timsong-cpp.github.io/cppwp/n4659/string.view
five constructorshttps://en.cppreference.com/w/cpp/string/basic_string_view/basic_string_view
C-stringhttps://sigcpp.github.io/2020/03/30/exploring-c-strings
std::stringhttps://en.cppreference.com/w/cpp/string/basic_string
operatorhttps://en.cppreference.com/w/cpp/string/basic_string/operator_basic_string_view
Part 2https://sigcpp.github.io/2020/04/07/safely-processing-immutable-text#1
comparisonhttps://godbolt.org/z/2tEvxC
two object declarationshttps://godbolt.org/z/vjLVGt
run this codehttps://godbolt.org/z/SFRVNo
a simple versionhttps://godbolt.org/z/sARC8Q
a templatized versionhttps://godbolt.org/z/6FnfcS
Jonathan Boccara’s posthttps://www.fluentcpp.com/2019/08/30/how-to-disable-a-warning-in-cpp/
run this codehttps://godbolt.org/z/G-EbgE
remove_prefixhttps://en.cppreference.com/w/cpp/string/basic_string_view/remove_prefix
remove_suffixhttps://en.cppreference.com/w/cpp/string/basic_string_view/remove_suffix
erasehttps://en.cppreference.com/w/cpp/string/basic_string/erase
comparison of the approaches in Listings B and Chttps://godbolt.org/z/XsvGf4
run this codehttps://godbolt.org/z/68raty
comparisonhttps://godbolt.org/z/53RF7r
Part 2https://sigcpp.github.io/2020/04/07/safely-processing-immutable-text
Part 3https://sigcpp.github.io/2020/04/20/guidelines-for-processing-immutable-text
Twitterhttps://twitter.com/sigcpp/status/1270054919794503680
https://hachyderm.io/@sigcpp
https://twitter.com/sigcpp

Viewport: width=device-width, initial-scale=1, user-scalable=no


URLs of crawlers that visited me.