More quickly how? (parallel assignments) | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 2

More quickly how? (parallel assignments)

Parallel assignments are quicker how? Just because it's easier to type or does it actually take less clock cycles to do all the assignments?

4th Nov 2016, 12:51 AM
Andrew Dunk
Andrew Dunk - avatar
1 ответ
+ 3
Andrew, Parallel assignments take a longer amount of time to run than separate line assignments. However, parallel assignments seem to be more efficient in terms of the number of lines of code needed to complete certain actions. I have posted a speed test created by greyblake that demonstrates this in my code section. See Greyblake's blog for other speed tests as well. http://greyblake.com/blog/2012/09/02/ruby-perfomance-tricks/
6th Nov 2016, 2:25 PM
Robert Russell
Robert Russell - avatar