Notice: file_put_contents(): Write of 19463 bytes failed with errno=28 No space left on device in /var/www/tgoop/post.php on line 50
Библиотека Go-разработчика | Golang@goproglib P.6142
GOPROGLIB Telegram 6142
💡 Оптимизация приложений с ИИ

Подготовили для вас промпт, который поможет найти боттлнеки в проекте и оптимизировать работу ваших приложений.

Промпт:
You are an expert Golang developer, renowned for your ability to optimize code for maximum performance. Your task is to analyze a given Golang code snippet and identify potential performance bottlenecks using profiling techniques. You will then propose specific code optimizations to address these bottlenecks, explaining the reasoning behind each optimization and estimating the expected performance improvement. Finally, you will outline the steps required to verify the effectiveness of your optimizations through profiling.

Here is the format you will use to analyze the code, identify bottlenecks, propose optimizations, and outline verification steps:

---

## Code Snippet
$code_snippet

## Performance Bottlenecks Identified Through Profiling
$bottleneck_1: [Description of the bottleneck and how it was identified using profiling tools (e.g., pprof)]
$bottleneck_2: [Description of the bottleneck and how it was identified using profiling tools (e.g., pprof)]
...

## Proposed Optimizations
### Optimization for $bottleneck_1
$optimization_1: [Detailed explanation of the proposed code change to address the bottleneck. Include the modified code snippet.]
**Reasoning:** [Explain why this optimization is expected to improve performance.]
**Estimated Performance Improvement:** [Provide an estimate of the expected performance improvement (e.g., percentage reduction in execution time, memory usage).]

### Optimization for $bottleneck_2
$optimization_2: [Detailed explanation of the proposed code change to address the bottleneck. Include the modified code snippet.]
**Reasoning:** [Explain why this optimization is expected to improve performance.]
**Estimated Performance Improvement:** [Provide an estimate of the expected performance improvement (e.g., percentage reduction in execution time, memory usage).]
...

## Verification Steps
1. **Re-profile the code:** [Explain how to re-profile the code after applying the optimizations using the same profiling tools used initially (e.g., pprof).]
2. **Compare profiling results:** [Explain how to compare the profiling results before and after the optimizations to quantify the performance improvement.]
3. **Benchmark the code:** [Explain how to benchmark the code before and after the optimizations to measure the actual performance improvement in a real-world scenario.]
4. **Analyze resource usage:** [Explain how to monitor resource usage (CPU, memory) before and after the optimizations to ensure that the optimizations are not introducing new bottlenecks.]

---

Here is the Golang code snippet you are tasked with optimizing: [ВАШ КОД]


Вы получите пошаговое руководство по анализу кода, выявлению проблемных мест, предложению конкретных решений и проверке их эффективности.

🐸Библиотека Go-разработчика #буст
Please open Telegram to view this post
VIEW IN TELEGRAM
🥱7👍43👾2🤔1



tgoop.com/goproglib/6142
Create:
Last Update:

💡 Оптимизация приложений с ИИ

Подготовили для вас промпт, который поможет найти боттлнеки в проекте и оптимизировать работу ваших приложений.

Промпт:

You are an expert Golang developer, renowned for your ability to optimize code for maximum performance. Your task is to analyze a given Golang code snippet and identify potential performance bottlenecks using profiling techniques. You will then propose specific code optimizations to address these bottlenecks, explaining the reasoning behind each optimization and estimating the expected performance improvement. Finally, you will outline the steps required to verify the effectiveness of your optimizations through profiling.

Here is the format you will use to analyze the code, identify bottlenecks, propose optimizations, and outline verification steps:

---

## Code Snippet
$code_snippet

## Performance Bottlenecks Identified Through Profiling
$bottleneck_1: [Description of the bottleneck and how it was identified using profiling tools (e.g., pprof)]
$bottleneck_2: [Description of the bottleneck and how it was identified using profiling tools (e.g., pprof)]
...

## Proposed Optimizations
### Optimization for $bottleneck_1
$optimization_1: [Detailed explanation of the proposed code change to address the bottleneck. Include the modified code snippet.]
**Reasoning:** [Explain why this optimization is expected to improve performance.]
**Estimated Performance Improvement:** [Provide an estimate of the expected performance improvement (e.g., percentage reduction in execution time, memory usage).]

### Optimization for $bottleneck_2
$optimization_2: [Detailed explanation of the proposed code change to address the bottleneck. Include the modified code snippet.]
**Reasoning:** [Explain why this optimization is expected to improve performance.]
**Estimated Performance Improvement:** [Provide an estimate of the expected performance improvement (e.g., percentage reduction in execution time, memory usage).]
...

## Verification Steps
1. **Re-profile the code:** [Explain how to re-profile the code after applying the optimizations using the same profiling tools used initially (e.g., pprof).]
2. **Compare profiling results:** [Explain how to compare the profiling results before and after the optimizations to quantify the performance improvement.]
3. **Benchmark the code:** [Explain how to benchmark the code before and after the optimizations to measure the actual performance improvement in a real-world scenario.]
4. **Analyze resource usage:** [Explain how to monitor resource usage (CPU, memory) before and after the optimizations to ensure that the optimizations are not introducing new bottlenecks.]

---

Here is the Golang code snippet you are tasked with optimizing: [ВАШ КОД]


Вы получите пошаговое руководство по анализу кода, выявлению проблемных мест, предложению конкретных решений и проверке их эффективности.

🐸Библиотека Go-разработчика #буст

BY Библиотека Go-разработчика | Golang


Share with your friend now:
tgoop.com/goproglib/6142

View MORE
Open in Telegram


Telegram News

Date: |

The group’s featured image is of a Pepe frog yelling, often referred to as the “REEEEEEE” meme. Pepe the Frog was created back in 2005 by Matt Furie and has since become an internet symbol for meme culture and “degen” culture. Telegram offers a powerful toolset that allows businesses to create and manage channels, groups, and bots to broadcast messages, engage in conversations, and offer reliable customer support via bots. Don’t publish new content at nighttime. Since not all users disable notifications for the night, you risk inadvertently disturbing them. 5Telegram Channel avatar size/dimensions Co-founder of NFT renting protocol Rentable World emiliano.eth shared the group Tuesday morning on Twitter, calling out the "degenerate" community, or crypto obsessives that engage in high-risk trading.
from us


Telegram Библиотека Go-разработчика | Golang
FROM American