@huseyin-tugrul-buyukisik
The inputs are prepared for the algorithms beforehand and time to compute them don't constitute to the runtime.
So no. Algorithmically-wise it wouldn't make sense either: O(n log n) vs O(n/m + log something). Although I haven't tested where's the tipping point for when sorting algorithm in c becomes slower than frequency calculation implemented in python.