docs(examples): update comments for cu optimization in manual buy script

This commit is contained in:
smypmsa
2025-10-27 22:06:40 +00:00
parent 3f20649d0e
commit ec6d58665d
@@ -8,6 +8,13 @@ improve transaction priority.
Key difference from manual_buy.py:
- Adds set_loaded_accounts_data_size_limit(512_000) before other instructions
NOTE: The CU savings from this optimization are NOT visible in transaction "consumed CU"
metrics, which only show execution CU. The 16k CU loaded accounts overhead is counted
separately for transaction priority/cost calculation. This makes the real impact hard
to measure directly, but it improves priority.
Reference: https://www.anza.xyz/blog/cu-optimization-with-setloadedaccountsdatasizelimit
"""
import asyncio