4 ms·
I stayed away from C++ for about 15 years, while working in higher level languages (C#, Go). I recently came back to it and my productivity is SOOO much higher,
by winstonprivacy 4y ago
I stayed away from C++ for about 15 years, while working in higher level languages (C#, Go). I recently came back to it and my productivity is SOOO much higher, along with my code quality.
I argue that for certain applications, the ability to work directly with memory is paramount. I shaved 35ns off of a critical routine the other day with a clever memory hack. And in another example, I doubled the speed of a critical loop simply by rearranging variables within a struct so that the CPU had more efficient access to them by avoiding page cache faults.
Mind you, this code already runs hundreds of times faster than anything written in Go or any other garbage collection language can do.
- vrnvu 4y agoHow does these performance optimizations you mention translate to cost? How much money are you saving monthly for example? It's hard to justify the effort to write fast code nowadays without talking about cost or revenue.
- celeritascelery 4y agoDo you think you would be as productive in Rust? Or have you you not tried it?
- winstonprivacy 4y agoI haven't tried it but for what I do, I need to be very close to assembly. One microsecond of processing time incurs high costs.