PYHINTS Telegram 64
همونطوری که گفتم توی پایتون
list, array 
۲ تا موضوع متفاوت از هم هست.
کار با لیست بخاطر خاصیت داینامیک بودن (هم از نظر سایز و حافظه و هم نوع داده‌ای) راحت تر هست اما همین دو ویژگی توی لیست باعث سرباز زیادی میشه

تصویر بالا مربوط به میزان مصرف حافظه
Array - List - Numpy
هست (داده مربوط به کار هوش مصنوعی)

اولین قدم توی optimization استفاده از نوع داده درست هست :
list —-> numpy array
3.8GB —-> 125MB
حساب کنید میزان بهبود در مصرف رم را


@PyHints
26👍19❤‍🔥52🎉1🍾1



tgoop.com/pyHints/64
Create:
Last Update:

همونطوری که گفتم توی پایتون

list, array 
۲ تا موضوع متفاوت از هم هست.
کار با لیست بخاطر خاصیت داینامیک بودن (هم از نظر سایز و حافظه و هم نوع داده‌ای) راحت تر هست اما همین دو ویژگی توی لیست باعث سرباز زیادی میشه

تصویر بالا مربوط به میزان مصرف حافظه
Array - List - Numpy
هست (داده مربوط به کار هوش مصنوعی)

اولین قدم توی optimization استفاده از نوع داده درست هست :
list —-> numpy array
3.8GB —-> 125MB
حساب کنید میزان بهبود در مصرف رم را


@PyHints

BY Python Hints




Share with your friend now:
tgoop.com/pyHints/64

View MORE
Open in Telegram


Telegram News

Date: |

Telegram Channels requirements & features Select: Settings – Manage Channel – Administrators – Add administrator. From your list of subscribers, select the correct user. A new window will appear on the screen. Check the rights you’re willing to give to your administrator. So far, more than a dozen different members have contributed to the group, posting voice notes of themselves screaming, yelling, groaning, and wailing in various pitches and rhythms. While some crypto traders move toward screaming as a coping mechanism, many mental health experts have argued that “scream therapy” is pseudoscience. Scientific research or no, it obviously feels good.
from us


Telegram Python Hints
FROM American