Benoit Besson, it's hard to say without seeing your code. Please create a pull request with a test case and your changes with the improvement.