mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-17 21:49:42 +00:00
Some checks are pending
CI / macOS, arm64, Sanitizer, Clang (push) Waiting to run
CI / Linux, x86_64, Fuzzers, Clang (push) Waiting to run
CI / Linux, x86_64, Sanitizer, GNU (push) Waiting to run
CI / Linux, x86_64, Sanitizer, Clang (push) Waiting to run
Package the js repl as a binary artifact / Linux, arm64 (push) Waiting to run
Package the js repl as a binary artifact / macOS, arm64 (push) Waiting to run
Package the js repl as a binary artifact / Linux, x86_64 (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Label PRs with merge conflicts / auto-labeler (push) Waiting to run
Push notes / build (push) Waiting to run
When T in HashTable<T> has a potentially slow equality check, it can be very profitable to check for a matching hash before full equality. This patch adds may_have_slow_equality_check() to AK::Traits and defaults it to true. For trivial types (pointers, integers, etc) we default it to false. This means we skip the hash check when the equality check would be a single-CPU-word compare anyway. This synergizes really well with things like HashMap<String, V> where collisions previously meant we may have to churn through multiple O(n) equality checks. |
||
---|---|---|
.. | ||
BlockAllocator.cpp | ||
BlockAllocator.h | ||
Cell.cpp | ||
Cell.h | ||
CellAllocator.cpp | ||
CellAllocator.h | ||
CMakeLists.txt | ||
ConservativeVector.cpp | ||
ConservativeVector.h | ||
DeferGC.h | ||
ForeignCell.cpp | ||
ForeignCell.h | ||
Forward.h | ||
Function.h | ||
Heap+Swift.swift | ||
Heap.cpp | ||
Heap.h | ||
HeapBlock.cpp | ||
HeapBlock.h | ||
HeapRoot.h | ||
Internals.h | ||
NanBoxedValue.h | ||
Ptr.h | ||
Root.cpp | ||
Root.h | ||
RootHashMap.cpp | ||
RootHashMap.h | ||
RootVector.cpp | ||
RootVector.h | ||
WeakContainer.cpp | ||
WeakContainer.h |