yungman
- 5,741
- 294
I read it on line to justify going into string_view.Filip Larsen said:Even if that claim was true (which I strongly doubt; modern std::string or similar implementations are highly optimized for performance while still maintaining easy and safe use), I can't help wondering what kind of program you plan to make where you think any performance difference between the two will be an issue?
I ask because run-time performance obviously does not matter one bit when you are just learning the basics, so if you are worried about speed you must be thinking of some usage situation and not about learning, right?
I hope I don't offend you below:
I designed a lot of hardware, there are situations time is critical. That goes back to a lot of times I mentioned and people disagree here. I notice EVERY single piece of hardware/appliance, be it cars, tv, computers, printers...everything that using firmware and/or software are getting slower and slower while the speed of hardware and processors are getting faster. I blame it on software people taking for granted that hardware is fast, they they can be more fancy and don't worry about the speed. I just do NOT want to be one of them. I respect hardware people that bent over backwards, breaking their backs to squeeze out the last bit of speed just to be wasted and take for granted by others. Do you know how hard it is to squeeze the speed, generation of hardware engineer, pcb designers are forced out because they don't have the knowledge of microwave to do design? The bus system on the pcb is NOT just a trace, you have to worry about reflection, crosstalk and all that.
I know how to design these, I spent years studying calculus, ODE, PDE in order to study electromagnetic to design microwave hardware. I few sorry towards those that don't. Out of respect, I will NOT wasting the speed away no matter what. There is a lot of blood sweat and tears to this.