Mercurial > hg
annotate contrib/clang-format-ignorelist @ 50400:95acba2c29f6
encoding: avoid quadratic time complexity when json-encoding non-UTF8 strings
Apparently the code uses "+=" with a bytes object, which is linear-time, so the
whole encoding is quadratic-time. This patch makes us use a bytearray object,
instead, which has a(n amortized-)constant-time append operation.
The encoding is still not particularly fast, but at least a 10MB file
takes tens of seconds, not many hours to encode.
author | Arseniy Alekseyev <aalekseyev@janestreet.com> |
---|---|
date | Mon, 06 Mar 2023 11:27:57 +0000 |
parents | e92ca942ddca |
children |
rev | line source |
---|---|
34834
2e8477059d4f
test-clang-format: new test to verify that files stay clang-formatted
Augie Fackler <augie@google.com>
parents:
diff
changeset
|
1 # Files that just need to be migrated to the formatter. |
2e8477059d4f
test-clang-format: new test to verify that files stay clang-formatted
Augie Fackler <augie@google.com>
parents:
diff
changeset
|
2 # Do not add new files here! |
2e8477059d4f
test-clang-format: new test to verify that files stay clang-formatted
Augie Fackler <augie@google.com>
parents:
diff
changeset
|
3 mercurial/cext/manifest.c |
2e8477059d4f
test-clang-format: new test to verify that files stay clang-formatted
Augie Fackler <augie@google.com>
parents:
diff
changeset
|
4 mercurial/cext/osutil.c |
2e8477059d4f
test-clang-format: new test to verify that files stay clang-formatted
Augie Fackler <augie@google.com>
parents:
diff
changeset
|
5 # Vendored code that we should never format: |
44037
98944715a02c
fix: convert clang-format-ignorelist to use wildcards
Kyle Lippincott <spectral@google.com>
parents:
43994
diff
changeset
|
6 syntax: glob |
98944715a02c
fix: convert clang-format-ignorelist to use wildcards
Kyle Lippincott <spectral@google.com>
parents:
43994
diff
changeset
|
7 contrib/python-zstandard/**.c |
98944715a02c
fix: convert clang-format-ignorelist to use wildcards
Kyle Lippincott <spectral@google.com>
parents:
43994
diff
changeset
|
8 contrib/python-zstandard/**.h |
98944715a02c
fix: convert clang-format-ignorelist to use wildcards
Kyle Lippincott <spectral@google.com>
parents:
43994
diff
changeset
|
9 hgext/fsmonitor/pywatchman/**.c |
98944715a02c
fix: convert clang-format-ignorelist to use wildcards
Kyle Lippincott <spectral@google.com>
parents:
43994
diff
changeset
|
10 mercurial/thirdparty/**.c |
98944715a02c
fix: convert clang-format-ignorelist to use wildcards
Kyle Lippincott <spectral@google.com>
parents:
43994
diff
changeset
|
11 mercurial/thirdparty/**.h |
46374
e92ca942ddca
cext: add Python 3.10 support
Victor Stinner <vstinner@python.org>
parents:
44037
diff
changeset
|
12 mercurial/pythoncapi_compat.h |