tests/blacklists/linux-vfat
author Simon Sapin <simon.sapin@octobus.net>
Tue, 27 Apr 2021 12:42:21 +0200
changeset 47130 04bcba539c96
parent 20622 352abbb0be88
permissions -rw-r--r--
dirstate-tree: Avoid BTreeMap double-lookup when inserting a dirstate entry The child nodes of a given node in the tree-shaped dirstate are kept in a `BTreeMap` where keys are file names as strings. Finding or inserting a value in the map takes `O(log(n))` string comparisons, which adds up when constructing the tree. The `entry` API allows finding a "spot" in the map that may or may not be occupied and then access that value or insert a new one without doing map lookup again. However the current API is limited in that calling `entry` requires an owned key (and so a memory allocation), even if it ends up not being used in the case where the map already has a value with an equal key. This is still a win, with 4% better end-to-end time for `hg status` measured here with hyperfine: ``` Benchmark #1: ../hg2/hg status -R $REPO --config=experimental.dirstate-tree.in-memory=1 Time (mean ± σ): 1.337 s ± 0.018 s [User: 892.9 ms, System: 437.5 ms] Range (min … max): 1.316 s … 1.373 s 10 runs Benchmark #2: ./hg status -R $REPO --config=experimental.dirstate-tree.in-memory=1 Time (mean ± σ): 1.291 s ± 0.008 s [User: 853.4 ms, System: 431.1 ms] Range (min … max): 1.283 s … 1.309 s 10 runs Summary './hg status -R $REPO --config=experimental.dirstate-tree.in-memory=1' ran 1.04 ± 0.02 times faster than '../hg2/hg status -R $REPO --config=experimental.dirstate-tree.in-memory=1' ``` * ./hg is this revision * ../hg2/hg is its parent * $REPO is an old snapshot of mozilla-central Differential Revision: https://phab.mercurial-scm.org/D10550
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
16339
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
     1
# invalid filenames
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
     2
test-add.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
     3
test-init.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
     4
test-clone.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
     5
test-contrib.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
     6
test-hgweb-raw.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
     7
test-walk.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
     8
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
     9
# no sockets or fifos
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    10
test-hup.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    11
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    12
# no hardlinks
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    13
test-hardlinks.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    14
test-relink.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    15
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    16
# exec bit problems
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    17
test-convert-bzr-114.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    18
test-convert-bzr-directories.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    19
test-convert-bzr-merges.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    20
test-convert-bzr-treeroot.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    21
test-convert-darcs.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    22
test-merge-tools.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    23
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    24
# debugstate exec bit false positives
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    25
test-dirstate.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    26
test-filebranch.t
6e738a0a3393 tests: really add blacklist for vfat on Linux
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    27
test-merge-remove.t