0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【公ド読】パフォーマンスの最適化のためのリファクタリング

Posted at

【公式ドキュメントを読もうシリーズ】パフォーマンスの最適化のためのリファクタリング

シリーズ概要

https://qiita.com/yasu_programming/items/cec66f9e8d5d571e9ce3

URL

https://docs.github.com/ja/copilot/copilot-chat-cookbook/refactoring-code/refactoring-for-performance-optimization

説明

挙動は正しいけれども、遅いコードをより最適なコードに変換してくれる。
パフォーマンスの向上をしてくれる。

所感

本番環境にアップする前にパフォーマンスの向上として、一度パフォーマンスの最適化のプロンプト入れることで、数%速度が上がるのであれば、一度パフォーマンス最適化のプロンプトを投げるというのがあって良さそう。

というか、構文チェックするみたいに、体系的にコマンドを叩くと、自動的にパフォーマンス最適化のプロンプトを投げるようにするといったことをしてもいいようにも思えてきた。

シェルスクリプトのファイルにgh コマンドとか設定しておいて、commitの後にそのシェルスクリプト叩くと、変更点のパフォーマンスの最適化やその他のリファクタリング項目を設定しておくとか良さそう。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?