+ 2

Very slow editing of "large" code in Ruby.

Editing a program in Ruby with the size of more than 500 lines of code (in Samsung Galaxy S4 smartphone on Android 4.3) is very very slowly! Why?

16th Apr 2018, 11:30 AM
meloman K_Y
meloman K_Y - avatar
5 odpowiedzi
+ 6
meloman K_Y Clock speed and core count don't mean everything. The thing is, you're comparing PC and mobile processors. PC processors generally use the x86 instruction set, which is much more advanced and complex than the ARM instruction set used by most mobile devices. For instance, Microsoft is looking to finally support ARM SoCs (system-on-a-chip, they have the CPU, GPU, ISP, networking chip, etc.) with Windows. A top of the line Snapdragon 835 running on the ARM instruction set (also in my phone) runs Windows at a speed of something along the lines of a high-end Pentium, which is still worse than most i3s. TL;DR: Instruction sets are what makes most of the difference here.
16th Apr 2018, 1:57 PM
LunarCoffee
LunarCoffee - avatar
+ 4
Because doing syntax highlighting for 500 lines of code can be too much load on mobile. If it were displayed without syntax highlighting it could have been a little more smoother editing/navigating the code.
16th Apr 2018, 12:16 PM
Lord Krishna
Lord Krishna - avatar
+ 3
Because it's a lot of code, which is harder to render. Also, you probably shouldn't be working on a larger project such as that on a mobile device. :)
16th Apr 2018, 12:00 PM
LunarCoffee
LunarCoffee - avatar
+ 3
My biggest in SoloLearn is over 1000 lines and it becomes difficult at times. A friend had one in the 5000 line area and it was impossible at times to do anything.
16th Apr 2018, 12:10 PM
John Wells
John Wells - avatar
+ 1
Thanks for all for your answers! But I want to clarify, on my desktop computer with the dual-core processor (Intel i3) everything works fine, while on the smartphone with a quad-core (!!!) processor (the frequency of 1.9 gigahertz each) editing is very very slow!
16th Apr 2018, 12:54 PM
meloman K_Y
meloman K_Y - avatar