java - Is calling a void method like copying the code? -


i have problem program writing , trying optimize best possible because lot of lag being generated result. need know if calling void method method copying code. example, have method "a", call void method "b" "a". "a" wait code in "b" finish before proceeding?

essentially yes. calling void method or copying code inside caller same in terms of performance (if call b once per method execution). , code executed sequentially. if want code inside method b executed in parallel need create thread. doing may raise other issues concurrency. problem seems related number of times call method or you're doing inside , b. can show program does, algorithm, , maybe have better answer.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -