TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #396 · 9 окт.

7.09.2025 состоялся релизPithon 3.14! На фоне хайпа про NoGIL всё позабыли про другие фичи. Особенно про Multiple Interpreters, который обещает изоляцию процессов но с эффективностью потоков! На сколько действительно это будет эффективно мы узнаем позже, потому что сейчас это лишь первый релиз с ограничениями и недоработками. Но что там про NoGIL? Теперь этот режим не экспериментальный, а официально поддерживаемый, но опциональный. Чтобы запустить без GIL нужна специальная сборка. И перед стартом нужно объявить переменную PYTHON_GIL=0 Для вас я собрал готовый репозиторий где достаточно запустить скрпит, который всё сделает: ▫️ соберет релизный Python 3.14 в новый Docker-образ ▫️ запустит тесты в контейнере (GIL, NoGIL, MultiInterpreter) ▫️ распечатает результаты Тест очень простой, усложняйте сами) Вот какие результаты у меня: === Running ThreadPoolExecutor GIL ON TOTAL TIME: 45.48 seconds === Running ThreadPoolExecutor GIL OFF TOTAL TIME: 6.14 seconds === Running basic Thread GIL ON TOTAL TIME: 45.54 seconds === Running basic Thread GIL OFF TOTAL TIME: 4.74 seconds === Running with Multi Interpreter TOTAL TIME: 18.30 seconds Если сравнивать GIL и NoGIL, то на мои 32 ядра прирост х7-x10 (почему не х32? 🤷). При этом нам обещают что скорости будут расти с новыми релизами. Режим без GIL похож (визуально) на async, тоже параллельно, тоже не по порядку. Но это не IO! и от того некоторый диссонанс в голове 😵‍💫, нас учили не так! Интересно, что чистый Thread работает быстрей чем ThreadPoolExecutor без GIL. Ну и где-то плачет один адепт мульти-интерпретаторов😭 Теперь нужно искать где они могут пригодиться с такой-то скоростью. Скорее всего своя область применения найдется. Отдельно я затестил память и вот что вышло на 32 потока: ThreadPoolExecutor GIL ON 305.228 MB ThreadPoolExecutor GIL OFF 500.176 MB basic Thread GIL ON 90.668 MB basic Thread GIL OFF 472.444 MB with Multi Interpreter 1267.788 MB Пока не знаю как к этому относиться) В целом - радует направление развития! #release

Hashtags

Резултати

Пронајдени 71 слични објави

Пребарај: #fastfood

当前筛选 #fastfood清除筛选
Dishes.Cooking.Food

@cookingdish · Post #940 · 01.09.2025 г., 13:05

Burger! 🍔🤤 Ingredients: For Burger: * Ground beef * Salt/Pepper to taste * Lettuce * Onion * Vinegar * Hamburger buns * American cheese For the Sauce: * Ketchup * Mayonnaise * Mustard * Pickle For Potatoes: * Potato * Garlic powder * Salt/Pepper * Paprika * Olive oil #fastfood @dishes

Hashtags

Dishes.Cooking.Food

@cookingdish · Post #937 · 29.08.2025 г., 13:04

Vegetarian Burger! 🍔🤩 Ingredients: For Burger: * Pumpkin Hummus * Spinach * Tomato * Avocado * Red onions * Aioli For the Cutlet: * 90 g. Soy granules * 4 Beets * 100 g. Flour * 150 g. Oats * 1 tbsp Smoked paprika spice * 2 tsp Salt * 2 tsp Cumin * 1 tsp Pepper * 1 tsp Thyme * 1 tsp Rosemary #fastfood @dishes

Hashtags

Dishes.Cooking.Food

@cookingdish · Post #918 · 11.08.2025 г., 13:05

Filet Mignon with Mushroom Sauce 1️⃣Filet Mignon 🧂 Pinch of Salt 🫒 2 Tbs Olive Oil 🧈 2 Tablespoons Unsalted Butter 🧄 2 Cloves Garlic 🌿 1 Sprig fresh Rosemary 🌿 2 Sprigs fresh Thyme 🥦Asparagus 🍄For Mushroom Sauce: 🫒 Olive oil 🧈 2 Tbsp Butter 🍄 100g Shiitake Mushrooms 🧅 1 Shallot Onion 🥃 1/4 cup Bourbon 🥛 1 cup Heavy Whipping Cream 🧂/🧑‍🍳 Salt/Pepper #fastfood @dishes

Hashtags

Dishes.Cooking.Food

@cookingdish · Post #916 · 09.08.2025 г., 11:04

Pan-Fried Branzino with Anchovy Butter ◇ Ingredients: - 🐟 1 Whole Branzino, filleted into 2 halves - 🐟 Anchovies, finely chopped - 🌿 Fresh Parsley, chopped - 🧈 Butter - 🫒 Olive Oil - 🧵 Kitchen Twine - 🥄 Fresh Asparagus - 🍋 Lemon juice #fastfood @dishes

Hashtags

Dishes.Cooking.Food

@cookingdish · Post #915 · 08.08.2025 г., 13:03

Gnocchi ◇ Ingredients: 🥔 1 kg russet potatoes 🍚 2 cups all-purpose flour, plus extra for dusting 🥚 2 egg yolks 🧄 Garlic For sage butter sauce: 🧈 100g unsalted butter 🌿 10-12 fresh sage leaves 🧂 Salt and freshly ground black pepper, to taste 🧀 Grated Parmesan cheese, for garnish #fastfood @dishes

Hashtags

Dishes.Cooking.Food

@cookingdish · Post #913 · 05.08.2025 г., 11:01

Mushroom Ravioli For the Pasta Dough: 🍝 200g. Semolina 🍝 200g. 00 Flour 🥚 5 large eggs For the Filling: 🧀 200g. ricotta cheese 🍄 400g. finely chopped mushrooms 🧅 1/2 large yellow onion, minced 🧀 2 Tbsp grated Parmesan cheese 🌿 1 Tbsp chopped fresh parsley 🧂 Salt and pepper, to taste 🧈 Butter #fastfood @dishes

Hashtags

Dishes.Cooking.Food

@cookingdish · Post #894 · 16.07.2025 г., 12:38

Big Mac Tacos! 🌮🌮🌮 Ingredients: * Mini wraps * Minced * Salt/Pepper * Pickles * Cheddar * Cabbage * Red onion Sauce: * 2 tbsp Mayo * 1 tbsp Ketchup * 1 Pickle * 1 tsp Yellow mustard * 1/2 tsp Paprika * 1/2 tsp Garlic powder * 1/2 tsp Pepper * 1/2 tsp Onion powder #fastfood @dishes

Hashtags

Dishes.Cooking.Food

@cookingdish · Post #886 · 07.07.2025 г., 21:23

🇬🇧Ingredients for Caesar Salad Tacos 🌿For the Herb Butter: - 🌿 1 handful of parsley - 🌶 1/2 tsp chili flakes - 🧄 1 clove of garlic - 🧈 100 g butter 🌿For the Tacos: - 🌮 4 small wraps - 🧀 Vegan sprinkle cheese - 🌱 4 Green Mountain vegan fillets - 🥬 1 romaine lettuce 🌿For the Salad Dressing: - 🌿 1 tbsp mustard - 🥛 110 g vegan mayo - 🍷 1 tbsp white wine vinegar - 🍋 2 tbsp lemon juice - 🛢 1 tbsp olive oil - 🧂 Salt and pepper to taste #fastfood @dishes

Hashtags

Dishes.Cooking.Food

@cookingdish · Post #878 · 30.06.2025 г., 11:02

Hummus Ingredients: 🥫 230 grams of dried chickpeas 🥄 1/2 tsp baking soda 🧂 1 tsp salt 🥄 180g tahini 🍋 Juice of half a lemon 🧄 2 garlic cloves 1 tsp cumin 🌿 🧂 Salt and pepper to taste 🧊 2-3 Tbsp Ice water Toppings: roasted garlic 🧄, smoked paprika 🌶, parsley 🌿, olive oil 🫒 #fastfood @dishes

Hashtags

Dishes.Cooking.Food

@cookingdish · Post #877 · 29.06.2025 г., 11:04

Fondant Potatoes Ingredients: 🥔 4 large russet potatoes 🫒 2 tablespoons olive oil 🧈 6 tablespoons unsalted butter 🧄 1 garlic head 🌿 6 sprigs fresh thyme 🍗 2 cups chicken broth 🍚 Caviar 🧂 Salt and freshly ground black pepper to taste #fastfood @dishes

Hashtags

Dishes.Cooking.Food

@cookingdish · Post #876 · 28.06.2025 г., 11:02

Fig & Triple Spread Toast Ingredients 🍞 Sourdough bread 🧀 Gorgonzola with Mascarpone 🍇 Raspberry jam 🌰 Pistachio paste Thyme #fastfood @dishes

Hashtags

Dishes.Cooking.Food

@cookingdish · Post #874 · 26.06.2025 г., 11:03

Seared Tuna with Mango Salsa🐟🥭 Ingredients - Tuna Steak 🐟 - Salt 🧂 - Oil 🫒 For the Mango Salsa - 1 ripe mango, diced 🥭 - 1/4 cup red onion, finely chopped 🧅 - 1/3 cup tomato, finely chopped 🍅 - 2 tbsp fresh cilantro, chopped 🌿 - Juice of 1/2 lemon or lime 🍋 - 1/4 cup Ponzu sauce 🍶 - Sesame seeds 🌱 #fastfood @dishes

Hashtags

123•••56
ПретходнаСтраница 1 од 6Следна