A very simple situation puzzles me for long, and I wonder if someone could help me.
I have two methods and would like to run them sequentially.
When I run sf_menu_Method1() and sf_menu_Method2() individually, they execute quickly (around 0.1 seconds).
However, when I run the combined method sf_menu_MethodAll(), it becomes significantly slower (around 20 seconds).
def self.sf_menu_Method1() Method1( sf_defaults ) end def self.sf_menu_Method2() Method2( sf_defaults ) end def self.sf_menu_MethodAll() Method1( sf_defaults ) Method2( sf_defaults ) end
These methods involve about 2800 components, I think this should not rise memory issues.
(System resources -CPU,Memory- are under 50% usage)
What could cause the slow down of the combined method?