Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Performance issue when extending objects with a module including constants #3993
The following code runs extremely slow on JRuby 184.108.40.206. It defines a module with a constant and a method that refers to the constant, and then create objects that are extended by the module and call the method defined in the module.
I couldn't find the reason but it gets slower over time and eventually crashes with java.lang.StackOverflowError.
It runs smoothly when there are no constants defined in the module.