Comments (1)
Actually it's faster than the Java version in every test run I've ever done and that was with next to zero optimization effort.
Also, no it's not passing containers and strings that are being copied when passed via value. I don't think you actually understand how Qt containers and QString even works. QString is CoW and is only copied if edited. Same with the containers like QVector.
https://doc.qt.io/archives/qt-4.8/implicit-sharing.html
Many C++ classes in Qt use implicit data sharing to maximize resource usage and minimize copying. Implicitly shared classes are both safe and efficient when passed as arguments, because only a pointer to the data is passed around, and the data is copied only if and when a function writes to it, i.e., copy-on-write.
And if you read the list of classes that use implicit sharing, you'll see that all of the ones used in this code base are on that list. Maybe you should have done more than a quick look since your hot take is based in complete ignorance?
If you think you can do better, please feel free to submit a pull request along with actual benchmarking to show your version makes things any faster.
from bdsup2subplusplus.
Related Issues (20)
- Scaling and moving doesn't work correctly with multi-region/graphic subs. HOT 1
- 1.0.2b Crashes on Exporting Many .sup to .sub HOT 19
- Crash when navigating to multi-region subtitle. HOT 1
- Detection of filters when called via CLI is broken. HOT 1
- Add proper support for fade and palette/alpha update effects.
- Not getting bit exact output between CLI and GUI. HOT 1
- If invalid palette INI file is loaded it will cause all colors to be set to black HOT 1
- Optimize BD SUP output
- Fix palette color matching when converting from BD SUP to Vobsub
- Add conversion to 960x720 HOT 1
- Add conversion to 768x576
- Multilanguage idx/sub to multiple xml/png outputs in CLI
- Another .sup File That Crashes bdsup2sub++ 1.02b
- .sup are losing their transparency after being processed by bdsup2sub++
- Automate BDSup2Sub++ HOT 1
- Support for Qt5
- Infinite loop in SubPictureBD::isForced and setForced
- Qt6 compatibility,... HOT 1
- Unknown header errors from BDSup2Sub generated idx/subs
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 bdsup2subplusplus.