mirror of
https://github.com/transmission/transmission
synced 2025-02-07 06:54:40 +00:00
fixup! perf: use small::max_size_vector in tr_torrentGetMetadataPiece (#5830)
* fixup! perf: use small::max_size_vector in tr_torrentGetMetadataPiece() (#5768) * enable tests for alpine CI --------- Co-authored-by: tearfur <46261767+tearfur@users.noreply.github.com>
This commit is contained in:
parent
22da17f13f
commit
ed3f6c2ec8
2 changed files with 4 additions and 4 deletions
4
.github/workflows/actions.yml
vendored
4
.github/workflows/actions.yml
vendored
|
@ -289,7 +289,7 @@ jobs:
|
|||
needs: [ what-to-make ]
|
||||
runs-on: ubuntu-22.04
|
||||
container:
|
||||
image: radupopescu/musl-builder
|
||||
image: alpine:latest
|
||||
if: ${{ needs.what-to-make.outputs.make-cli == 'true' || needs.what-to-make.outputs.make-daemon == 'true' || needs.what-to-make.outputs.make-gtk == 'true' || needs.what-to-make.outputs.make-qt == 'true' || needs.what-to-make.outputs.make-tests == 'true' || needs.what-to-make.outputs.make-utils == 'true' }}
|
||||
steps:
|
||||
- name: Show Configuration
|
||||
|
@ -342,7 +342,7 @@ jobs:
|
|||
-DENABLE_GTK=${{ (needs.what-to-make.outputs.make-gtk == 'true') && 'ON' || 'OFF' }} \
|
||||
-DENABLE_MAC=OFF \
|
||||
-DENABLE_QT=${{ (needs.what-to-make.outputs.make-qt == 'true') && 'ON' || 'OFF' }} \
|
||||
-DENABLE_TESTS=OFF \
|
||||
-DENABLE_TESTS=ON \
|
||||
-DENABLE_UTILS=${{ (needs.what-to-make.outputs.make-utils == 'true') && 'ON' || 'OFF' }} \
|
||||
-DENABLE_WEB=${{ (needs.what-to-make.outputs.make-web == 'true') && 'ON' || 'OFF' }} \
|
||||
-DENABLE_WERROR=ON \
|
||||
|
|
|
@ -715,7 +715,7 @@ private:
|
|||
|
||||
// When `v` is a dict, this is its children's indices sorted by key.
|
||||
// Bencoded dicts must be sorted, so this is useful when writing benc.
|
||||
small::vector<size_t, 512> sorted;
|
||||
small::vector<size_t, 128U> sorted;
|
||||
};
|
||||
|
||||
class VariantWalker
|
||||
|
@ -763,7 +763,7 @@ public:
|
|||
private:
|
||||
size_t size = 0;
|
||||
|
||||
static auto constexpr InitialCapacity = size_t{ 32U };
|
||||
static auto constexpr InitialCapacity = size_t{ 24U };
|
||||
small::vector<WalkNode, InitialCapacity> stack;
|
||||
small::vector<WalkNode::ByKey, InitialCapacity> sortbuf;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue