این یکی هم مقایسه سرعت عملکرد CPU نسبت به گرفتن داده هست!
دلیل پافشاری من بر اینکه؛ حتماً concurrency رو یاد بگیرید هم همین هست!
خوندنش اینطوری هست؛ ۱ سیکل سیپییو (توی چند نسل قبل اینتل ۱۴ تا instruction میتونست انجام بده) رو اگر فرض کنیم ۱ ثانیه زمان میبره (زمان واقعیتر ستون وسط هست)
خوندن داده از سریعترین رمهای موجود؛ ۶ دقیقه میشه به نسبت اون! و خوندن از درایو SSD (بسته به سرعت و ...) مثل این میمونه که بین ۲ تا ۶ روز زمان ببره! و اگر async کد نمیزنید توی تمام این مدت CPU شما بیکار هست، باید صبر کنه تا اون دادهها بهش برسه!
حالا میتونید قشنگ درک کنید که چرا میگیم تسکهای I/O bound رو حتماً async کنید.
این یکی هم مقایسه سرعت عملکرد CPU نسبت به گرفتن داده هست!
دلیل پافشاری من بر اینکه؛ حتماً concurrency رو یاد بگیرید هم همین هست!
خوندنش اینطوری هست؛ ۱ سیکل سیپییو (توی چند نسل قبل اینتل ۱۴ تا instruction میتونست انجام بده) رو اگر فرض کنیم ۱ ثانیه زمان میبره (زمان واقعیتر ستون وسط هست)
خوندن داده از سریعترین رمهای موجود؛ ۶ دقیقه میشه به نسبت اون! و خوندن از درایو SSD (بسته به سرعت و ...) مثل این میمونه که بین ۲ تا ۶ روز زمان ببره! و اگر async کد نمیزنید توی تمام این مدت CPU شما بیکار هست، باید صبر کنه تا اون دادهها بهش برسه!
حالا میتونید قشنگ درک کنید که چرا میگیم تسکهای I/O bound رو حتماً async کنید.
Among the requests, the Brazilian electoral Court wanted to know if they could obtain data on the origins of malicious content posted on the platform. According to the TSE, this would enable the authorities to track false content and identify the user responsible for publishing it in the first place. Just as the Bitcoin turmoil continues, crypto traders have taken to Telegram to voice their feelings. Crypto investors can reduce their anxiety about losses by joining the “Bear Market Screaming Therapy Group” on Telegram. In the “Bear Market Screaming Therapy Group” on Telegram, members are only allowed to post voice notes of themselves screaming. Anything else will result in an instant ban from the group, which currently has about 75 members. Choose quality over quantity. Remember that one high-quality post is better than five short publications of questionable value. Your posting frequency depends on the topic of your channel. If you have a news channel, it’s OK to publish new content every day (or even every hour). For other industries, stick with 2-3 large posts a week.
from us