Asdf
I see. printf is way faster than ostream
Why you want speed? is not better easy to use
many
Why you want speed? is not better easy to use
One of the reasons of implementing in C/C++ is runtime performance. For algorithmic stuff, I will use python cuz it's neat (slower though) and I can focus on algorithm.
zed
Why you want speed? is not better easy to use
speed? printf easy? iostream speed & easy? fmt
Asdf
speed? printf easy? iostream speed & easy? fmt
I don't know fmt but sound great
David
But if you care about performance, you will not be printing stuff to stdout frequently
David
eh
¿?
jcjordyn120
what
David
@jcjordyn120 Basically, if printing to screen is slow, print less.
jcjordyn120
ah, I'd rather more info then a little more speed.
jcjordyn120
(with a quiet mode of course)
Asdf
I/O it's low
David
#include <iostream> #include <stdio.h> int main() { for(unsigned i = 0; i < 9000000; i++) printf("Hello"); // std::cout << "Hello"; compiled with g++ 7 and -O3 the difference is about 0.001 second, and nobody calls std::cout so many times
David
ah, I'd rather more info then a little more speed.
Then do like all the logging libraries, set log levels so you can decide when you want to have a lot of info, and when not.
David
@jcjordyn120 But if you have a program which compress some file for example, you will not be printing for each iteration of the algorithm, so the performance impact in this example is totally negligible
Asdf
Asdf
eh it works.
I know, but is not the best
David
I'm not an expert, but if someone decides to change from std::cout to printf to improve the performance of their system, is doing something very wrong.
jcjordyn120
Asdf
and it's simple ;P
Like iostream
jcjordyn120
like if it was 1 vs 5 seconds then maybe i'd change, but the difference is so small it's pointless.
David
I'm old school, I just always log unless -q is given.
Just log everything to a buffer, and at the end of the execution you throw it all to their face, it will probably be faster xDD
David
Good night.
jcjordyn120
Anonymous
https://github.com/fmtlib/fmt
It's like Golang fmt
Anonymous
jcjordyn120
Python is very slow
not enough to matter in 99% of cases.
jcjordyn120
and in the cases in which it does matter, why use an interpreted language?
Anonymous
With computers today you won't notice
jcjordyn120
With computers today you won't notice
I'm talking embedded stuff, like pi's and phones.
Anonymous
Why you use python in embedded devices?
Anonymous
It's like using Java in phones lol
jcjordyn120
Why you use python in embedded devices?
on the pi I use it because it's readable, clean, and easy from a coder standpoint.
jcjordyn120
but that's not the point, it was just an example.
Anonymous
but that's not the point, it was just an example.
Good example of where people don't should use python
Anonymous
I think that embedded devices should be program in C or ASM
Anonymous
Low level programming language mainly
jcjordyn120
because for me personally, if it's anything higher level then a audrino then it get's C++ or python.
Anonymous
define embedded
Devices with mips processor or 8 bits
Jay
@Mester11 spam
Anonymous
Jay
Thanks @Mester11
Anonymous
Who can crack a multiplayer RPG game
Anonymous
I want to get gems so bad but I dont have a credit card to do so
many
Hacking other's server is illegal
Anonymous
Oh
Anonymous
I c
Anonymous
Then dont worry
Anonymous
But is there a way I can get gems
Anonymous
Do u know this game legacy of the discord
many
What's the name of the game?
Anonymous
Legacy of the discord
Anonymous
Check out "Legacy of Discord-FuriousWings" https://play.google.com/store/apps/details?id=com.gtarcade.lod
Anonymous
That is it
Anonymous
Anonymous
many
Online multiplayer games probably keep their eye on user statistics.
Anonymous
Online multiplayer games probably keep their eye on user statistics.
True but I've seen ppl using some online hack to get gem and nothing has happen to their characters
many
When an abnormal changes on user stat is detected, the server may suspend your account
Anonymous
So lemme jux continue to play normal
many
I don't know how those tools work. Probably those tools are developed by competitors, maybe