Thread: thoughts on StringView library

  1. #1
    Registered User
    Join Date
    Aug 2023
    Posts
    45

    Lightbulb thoughts on StringView library

    I'm pondering the actual usefulness of this addition to the new compilers. Today, with higher UProc speeds and memory now available in GB instead of KBytes, I wonder how much StringView will add to a programs efficiency. A few strings being copied won't really effect how much memory is being used with todays memory. I don't think that it will be much faster especially in smaller programs. Maybe a DB program could use it since it stores so much data that probably gets copied a lot. The idea of not making string copies, but using references instead, is quite intriguing, but is it overkill?
    maxcy/wt1v

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Thoughts on adding safety checks to a library
    By Sir Galahad in forum C Programming
    Replies: 2
    Last Post: 05-21-2021, 05:09 PM
  2. thoughts
    By laasunde in forum C++ Programming
    Replies: 5
    Last Post: 06-26-2003, 08:38 AM
  3. What are you thoughts?
    By hermit in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 10-06-2002, 06:10 PM
  4. more thoughts....
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 05-07-2002, 02:34 AM
  5. thoughts
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 27
    Last Post: 04-29-2002, 10:00 PM

Tags for this Thread