Comments (6)
from hwlib.
from hwlib.
Hi Wouter, I think you might have misunderstood me. It is correct to have the keyword override but it would be beneficial to also have the keyword final.
If you do then the compiler can de-virtualise it and remove the overheads associated with it. You'll see this optimisation occurring in the godbolt link above also
I'd also like to add that I saw your talk on youtube from a recommendation on Reddit and would like to thank you for it! It's been a great help in selling me on moving to C++
from hwlib.
Awesome, it'll be interesting to know if it becomes as fast as a templated version. I imagine link time optimisation might be needed for that though
from hwlib.
from hwlib.
Yes I see this now, I've played around with it in godbolt and you only get the savings from final
if you are directly calling the final class. If you call anything above you get the intermediate objects as you say.
I'll have a look at godafoss when I get some free time!
from hwlib.
Related Issues (18)
- Pay for what you don't use HOT 1
- UART baudrate bug HOT 4
- New line but no carriage return HOT 1
- Hwlib HW spi support
- Unable to print doubles HOT 2
- hwlib::string find and rfind operator infinite loop HOT 2
- https://github.com/wovo/hwlib/commit/f05b66f15e6552cd6d1a0e3e48a589f09f51e743 HOT 4
- member channel missing in i2c_bus_bit_banged_scl_sda HOT 1
- hwlib not compiling HOT 2
- Problem in latest commit(23a38ca) in hwlib-native-sfml.hpp
- Discussion: move semantics for pin objects HOT 1
- Meaningless abs function in line draw HOT 1
- Olivier heeft zijn stage nog niet ontvangen HOT 1
- stm32f103 says it is normaly configured as pull up but im not convinced that is the case. HOT 1
- If statements that always result to false HOT 1
- Nested ternary operators and if statements that always result to false; HOT 1
- GLCD clear() does not clear entire buffer / hangs processor HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hwlib.