Оптимизировать код и производительность python script
Нужно оптимизировать python script, проблема в том что запускается параллельно где-то 100-200 экземпляров.
Проблема в плохо написанном коде и когда запускается очень много экземпляров то сжирает всю память.
Думаю можно сделать все через кэш, чтобы не загружать все в память, а хранить в кэше и всем экземплярам работать с одним файлом.
В других скриптах использовали bsddb185
Файл прикрепил.
Applications 1
-
40 Можно подробнее объяснить, что этот скрипт вообще делает. Код очень непонятно написан. Видно что он открывает какие-то файлы, но с какой целью? Запускается 100-200 экземпляров самого процесса? Судя по коду, легче весь скрипт акуратно переписать в соответствии с задачей, которую этот скрипт должен выполнять.
Current freelance projects in the category Python
It is necessary to develop the backend for the website.
178 USD
Need to develop the backend for the website, the frontend has already been done in Lovable.dev. Functionality: License system What should work: I create (or issue after payment) a license key to the user. The user activates the license on the site. The license is tied to the… Python, Web Programming ∙ 28 minutes back ∙ 35 proposals |
AI Commenting Platform for TikTok and Instagram.Project Goal Develop a system that allows managing a large number of TikTok and Instagram accounts and automatically posting relevant comments under selected videos using AI. Main Functionality1. Account Management It is necessary to implement the ability to connect accounts:… AI & Machine Learning, Python ∙ 22 hours 42 minutes back ∙ 15 proposals |
Build a customer classification model1. There is client data in Mongo/SQL (approximately 20,000 entries with raw data). 2. It is necessary to build features and a classification model of clients into behavioral groups based on this data. 3. The project should be completed in Python. AI & Machine Learning, Python ∙ 2 days 16 hours back ∙ 35 proposals |
IT Automation of VAT Reporting
223 USD
It is necessary to develop a system for automating the transfer of sales data from the CRM to the accounting system Wafeq. The system should import bank and payment reports, automatically reconcile payments with invoices, generate invoices for VAT reporting, and minimize manual… AI & Machine Learning, Python ∙ 2 days 22 hours back ∙ 44 proposals |
Account reconciliation tool with the bank, cards, and accountantTechnical Assignment: Tool for Reconciling Accounts with Bank, Cards, and AccountantGeneral Goal A local tool (script/small application in Python) is needed, which is manually run once every 1-2 months on my computer and performs reconciliation between: Invoices I issued to… Python, Desktop Apps ∙ 3 days 10 hours back ∙ 42 proposals |