The problem isn't that sorting is heavy work, it typically isn't.
The problem is that with certain pathological input (malicious attacks) sorting dict-insertion and dict-lookup can be very much slower than expected.
This can be avoided with different choice of hash-function for the dictionary, but that will tend to be slower for the typical (non-malicious) case.
Putting the thing in hardware wouldn't really change that.
Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds