Closed vitamin-caig closed 5 months ago
Hi! Yeah sure, I always want to make it better :) Btw, thank you for the amazing work you did on ZXTune.
Great!:)
At first glance:
platform
and resource
librariesYeah, Thanks for the info: I did a quick and dirty integration and never looked at improving it.
std::set<std::string> extensions;
for (const auto& plugin : ... ) {
extensions.insert(Strings::ToLowerAscii(plugin->Id()));
}
const auto buffer = Strings::Join(extensions, ";"_sv) + ";szx;zip...";
g_replayPlugin.extensions = strdup(buffer.c_str());
Thanks for the suggestions, it reduced the repo and the ouput runtime size.
Do not make ms_service static class variable:
// ReplayZXTune.cpp
namespace {
ZXTune::Service& GetService() {
static const auto instance = ZXTune::Service::Create(Parameters::Container::Create());
return *instance;
}
...
GetService().DetectModules(...)
This will postpone service creation till first replay usage. The same technique may be used for another singletons.
Hello!
I'm the author of ZXTune you are using in your project. Are you interested in recommendations about its better usage and making changes in order to achieve best performance/stability and make upstream merging easy?