|
|
|
|
|
by Mawr
99 days ago
|
|
> And that is sad, as third party libraries should never perform better than standard library. It's quite literally the opposite. The purpose of a stdlib is standardization, stability, and broad usefulness, not extreme performance. In fact, that can't be its purpose — you can only get max performance if you tune for your exact use case — but how could a stdlib that's by definition generic ever be able to do that? > but then again there are faster libraries that can give you 3x performance(in case of numeric keys) Yeah, exactly. If you can constrain your problem domain ("numeric keys only"), you can always squeeze out more performance than a generic algorithm can give you. Completely irrelevant as far as stdlib goes though. |
|