This benchmark is not very meaningful. While Sleep is sometimes considered an alternative to DoEvents they are based on completely different algorithms.An hour ago I decided to create 3 simple For Loop test programs just to see just how quickly C#, VB.Net and B4J can run a counter in a label counting from 0 to 100000. B4J is using Sleep(0) whilst both C# and VB.Net are using Application.DoEvents() to keep the programs responsive. Yes I know I could have used async with await instead, but I didn't.
Actually no. Calling Sleep(0) will also update everything.guess the big difference is that DoEvents updates the entire UI (window, button, label, taskbar button if any) and not only the label.
This benchmark is not very meaningful. While Sleep is sometimes considered an alternative to DoEvents they are based on completely different algorithms.
I hope that soon we will have b4j controls like that.I would personally prefer to use B4J for this project as VS DataGridViews are nowhere near as light weight as they should be in my opinion and also not as fast either.
I was curious about Python....
Maybe B4X user @wonder can answer that particular question for us all. Bruno appears to be the resident Python export on the community and I personally didn't install Python onto my development laptop when I was installing VS.
I'm not really interested in Python, as it's yet another language to learn as if things were not difficult already with VB.Net, C, C++, C#, F#, PHP, Java, JavaScript blah blah blah
Without "redraws" (labels) I got 306ms with b4j, 11ms with vb.net.counting to 100000 in 15 seconds or 50 seconds is questionable because of unnecessary redraws.
counting to 100000 in 15 seconds or 50 seconds is questionable because of unnecessary redraws.
i will make a c# test ...
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?