7 ms·
Use C or C++ instead?
by askyourmother 10y ago
Use C or C++ instead?
- b34r 10y agoRTFA dude. The end product was _faster_ than C.
- Cyph0n 10y ago...after a ton of ugly workarounds and optimizations. I wonder how much slower than C a straight C++ port would be.
- tempodox 10y ago> _faster_ than C How do you know? There is no data on the respective machines and environments. A number from a tweet and a number from a blog post do not make such data.
- mzaks 10y agoPerformance test run on Travis CI in a virtual machine https://travis-ci.org/mzaks/FlatBuffersSwift https://travis-ci.org/mzaks/FlatBuffersSwift function called for decode+use+dealloc https://github.com/mzaks/FlatBuffersSwift/blob/master/FlatBuffersPerformanceTestDesktop/flatbench.swift#L55 https://github.com/mzaks/FlatBuffersSwift/blob/master/FlatBu... function called for direct: https://github.com/mzaks/FlatBuffersSwift/blob/master/FlatBuffersPerformanceTestDesktop/flatbench.swift#L112 https://github.com/mzaks/FlatBuffersSwift/blob/master/FlatBu... function called for using struct: https://github.com/mzaks/FlatBuffersSwift/blob/master/FlatBuffersPerformanceTestDesktop/flatbench.swift#L144 https://github.com/mzaks/FlatBuffersSwift/blob/master/FlatBu... Everything is on Github, you are welcome to try it out on your own machine.
- dkersten 10y agoIs it still faster than C with this mistake fixed? https://news.ycombinator.com/item?id=11713486 https://news.ycombinator.com/item?id=11713486