WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
207349
[WTF] Introduce linear-search-threshold for HashTable
https://bugs.webkit.org/show_bug.cgi?id=207349
Summary
[WTF] Introduce linear-search-threshold for HashTable
Yusuke Suzuki
Reported
2020-02-06 12:56:00 PST
Let's add linear-search-threshold for HashTable to use higher load-factor for smaller hashtable. 1. Like, setting a linear-search-threshold to 8. 2. Up to 7, we extend capacity when we hit capacity - 1, which is higher load-factor than 75%.
Attachments
Patch
(17.79 KB, patch)
2020-02-06 18:01 PST
,
Yusuke Suzuki
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Yusuke Suzuki
Comment 1
2020-02-06 13:46:06 PST
(In reply to Yusuke Suzuki from
comment #0
)
> Let's add linear-search-threshold for HashTable to use higher load-factor > for smaller hashtable. > > 1. Like, setting a linear-search-threshold to 8. > 2. Up to 7, we extend capacity when we hit capacity - 1, which is higher > load-factor than 75%.
And we should revisit minimumTableSize = 8 definition too. I think this is defined in pre-bmalloc era. So it is assuming malloc is enough slow.
Yusuke Suzuki
Comment 2
2020-02-06 18:01:33 PST
Created
attachment 390038
[details]
Patch
Yusuke Suzuki
Comment 3
2020-02-07 11:00:48 PST
The test failures are caused by the bug in the tests relying on particular hash-table iteration order, which is not guaranteed. Need to fix.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug