Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Ark
Commits
2cc1111e
Commit
2cc1111e
authored
Feb 28, 2022
by
Kai Uwe Broulik
🍇
Browse files
Cache result of libarchiveHasLzo
It is extremely slow (~100 ms on my machine) and hardly changes.
parent
efd42d9e
Pipeline
#143591
passed with stage
in 1 minute and 34 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
kerfuffle/pluginmanager.cpp
View file @
2cc1111e
...
...
@@ -122,8 +122,9 @@ QStringList PluginManager::supportedMimeTypes(MimeSortingMode mode) const
supported
.
remove
(
QStringLiteral
(
"application/x-lz4-compressed-tar"
));
}
static
bool
s_libarchiveHasLzo
=
libarchiveHasLzo
();
// Remove entry for lzo-compressed tar if libarchive not linked against lzo and lzop executable not found in path.
if
(
!
libarchiveHasLzo
()
&&
QStandardPaths
::
findExecutable
(
QStringLiteral
(
"lzop"
)).
isEmpty
())
{
if
(
!
s_
libarchiveHasLzo
&&
QStandardPaths
::
findExecutable
(
QStringLiteral
(
"lzop"
)).
isEmpty
())
{
supported
.
remove
(
QStringLiteral
(
"application/x-tzo"
));
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment