5 ms·
Were all of these optimisations always in Qt 4 from it's introduction in 2005? Given some of them seem to need std::move(), I assume they were added later once
by pixelesque 2y ago
Were all of these optimisations always in Qt 4 from it's introduction in 2005?
Given some of them seem to need std::move(), I assume they were added later once C++11 was common?
- cjensen 2y agoThe optimization mentioned in this article is to literally use memcpy for certain types. As you mention, the code is from 2005, so the options are memcpy (when applicable) or a full copy constructor. The article discusses some old-school techniques that Qt uses to determine memcpy may be used.