gamma-performance-tuning

Featured

Optimize Gamma API performance and reduce latency. Use when experiencing slow response times, optimizing throughput, or improving user experience with Gamma integrations. Trigger with phrases like "gamma performance", "gamma slow", "gamma latency", "gamma optimization", "gamma speed".

AI & Automation 2,926 stars 433 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Gamma Performance Tuning ## Overview Optimize Gamma API integration performance. Gamma's generate-poll-retrieve pattern means most latency is in generation time (10-60s), not API call overhead. Optimize by: reducing poll overhead, parallelizing batch operations, caching results, and choosing the right generation parameters. ## Prerequisites - Working Gamma integration (see `gamma-sdk-patterns`) - Understanding of async patterns - Redis or in-memory cache (recommended) ## Performance Characteristics | Operation | Typical Latency | Notes | |-----------|----------------|-------| | POST `/generations` | 200-500ms | Just starts the generation | | GET `/generations/{id}` (poll) | 100-300ms | Per poll request | | Full generation (poll to completion) | 10-60s | Depends on content + cards | | GET `/themes` | 100-200ms | Cacheable | | GET `/folders` | 100-200ms | Cacheable | ## Instructions ### Step 1: Optimize Poll Strategy ```typescript // src/gamma/smart-poll.ts // Adaptive polling: start fast, slow down over time export async function smartPoll( gamma: GammaClient, generationId: string, opts = { maxTimeMs: 180000 } ): Promise<GenerateResult> { const deadline = Date.now() + opts.maxTimeMs; let interval = 2000; // Start at 2s while (Date.now() < deadline) { const result = await gamma.poll(generationId); if (result.status === "completed") return result; if (result.status === "failed") throw new Error("Generation failed"); // Adaptive backoff:...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category