I think there should be at lease a benchmark to justify such an ugly implementation.