Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
raphlinus
on Jan 30, 2017
|
parent
|
context
|
favorite
| on:
Maps and sets can have quadratic-time performance
If I'm reading right, this is the same problem as
http://accidentallyquadratic.tumblr.com/post/153545455987/ru...
, only it hasn't been fixed yet in Swift?
Gankro
on Jan 30, 2017
|
next
[–]
Yes. However Rust's precise mitigation only works because it doesn't use hashcoding (Swift does). A possible mitigation that's similar to Rust's would be for each Dictionary to post-process hashes with some per-Dictionary key/salt.
panic
on Jan 30, 2017
|
prev
[–]
Thanks, this is a much clearer description of the problem!
Consider applying for YC's Winter 2027 batch!
Applications
are open till November 2.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: