Разработка программного обеспечения с GitHub Copilot
Thalia Barrera
AI Engineering Curriculum Manager, DataCamp

Проблемы производительности:
📈 Код работает корректно, но не масштабируется
def find_common(list1, list2):
common = []
for item in list1:
for item2 in list2:
if item == item2:
common.append(item)
return common
❌ Роняет продакшн в час пик
[screencast]
[screencast]

Точечная оптимизация
Optimize
#selectionfor performance and reduce time complexity
Review
#selectionfor memory leaks
Сканирование всей кодовой базы
@workspacefind functions with nested loops over large collections
[screencast]
[screencast]
.github/copilot-instructions.md
## Performance standards
- Prefer set or dict lookups over nested loops
- Use context managers for files, connections, and sockets
- Avoid loading entire datasets into memory, use generators or streaming
✅ Предотвращает появление узких мест производительности в коде
Разработка программного обеспечения с GitHub Copilot