PromptsVault AI is thinking...
Searching the best prompts from our community
Searching the best prompts from our community
Prompts matching the #optimization tag
Optimize React Native app performance. Checklist: 1. Analyze bundle size and startup time. 2. Implement FlatList optimizations (windowSize, initialNumToRender). 3. Memoize heavy computations with useMemo/useCallback. 4. Optimize image loading and caching. 5. Remove unnecessary re-renders using React.memo. 6. Offload complex logic to native modules. 7. Monitor frame drops (FPS) with Perf Monitor. 8. Profile memory usage and fix leaks. Include interaction to next paint (INP) improvements.
Optimize Unity game physics for mobile performance. Techniques: 1. Adjust fixed timestep settings. 2. Use primitive colliders over mesh colliders. 3. Implement object pooling for projectiles. 4. Configure collision matrix to reduce checks. 5. Use raycast layers for efficiency. 6. Bake static physics objects. 7. Profile with Unity Profiler and Frame Debugger. 8. Limit rigidbodies on active scenes. Include multi-threading setup for physics calculations.
Optimize sleep quality for better health and performance. Protocol: 1. Consistent sleep schedule (same bedtime/wake time). 2. 7-9 hours target. 3. Cool room (65-68°F). 4. Complete darkness (blackout curtains, eye mask). 5. No screens 1 hour before bed (blue light). 6. Limit caffeine after 2pm. 7. No alcohol 3 hours before sleep. 8. Wind-down routine (reading, stretching). Track with Oura Ring, Whoop. Morning sunlight exposure. Magnesium supplement. White noise if needed. Sleep is foundation for productivity, mood, health.
Optimize Pandas data processing pipeline. Techniques: 1. Vectorize operations (avoid loops). 2. Use appropriate data types (int8, category). 3. Process large datasets with chunking. 4. Parallelize processing with Dask or Swifter. 5. Efficient file formats (Parquet/Feather). 6. Memory usage profiling. 7. Index optimization for merging. 8. Caching intermediate results. Include benchmark comparisons.
Measure which prompt performs better. Features: 1. Two versions of a prompt (Variant A vs B). 2. Key Metrics: Relevancy Score, Accuracy, Response Speed, Token Usage. 3. Statistically significant 'Winner' badge. 4. User feedback collection tool for manual evaluation. 5. Chart comparing costs over 1,000 runs.
Design a rigorous A/B test for product optimization. Process: 1. Define hypothesis (changing X will increase Y by Z%). 2. Choose primary and secondary metrics. 3. Calculate required sample size for statistical power. 4. Determine test duration (minimum 1 week, 2 business cycles). 5. Randomize users (50/50 split). 6. Implement tracking and QA. 7. Monitor for novelty effects and external factors. Analyze results with statistical significance testing. Document learnings. Iterate based on insights.
Optimize Docker images using multi-stage builds. Techniques: 1. Separate build and runtime stages. 2. Use slim base images (alpine, distroless). 3. Leverage layer caching with proper ordering. 4. Copy only necessary artifacts to final stage. 5. Use .dockerignore to exclude files. 6. Run as non-root user for security. 7. Scan for vulnerabilities with Trivy. Example for Node.js app: reduce image from 1GB to 150MB. Include CI integration and registry best practices.
Optimize application performance systematically. Techniques: 1. Profile first (identify bottlenecks with profiler). 2. Database optimization (indexes, query optimization, connection pooling). 3. Caching (Redis, Memcached, CDN). 4. Lazy loading (load data on demand). 5. Code-level optimization (efficient algorithms, avoid premature optimization). 6. Asynchronous processing (queues, background jobs). 7. Minification and compression (gzip, Brotli). Frontend: bundle splitting, image optimization, tree shaking. Backend: horizontal scaling, load balancing. Measure impact (before/after metrics). Use APM tools (New Relic, Datadog). 80/20 rule: optimize the 20% causing 80% slowness.
Optimize pricing strategy. Models: 1. Cost-plus (cost + margin). 2. Value-based (customer willingness to pay). 3. Competitive (market rates). 4. Penetration (low to gain share). 5. Premium (high for positioning). 6. Freemium (free + paid tiers). 7. Usage-based. 8. Dynamic pricing. Test with A/B experiments. Anchor with high tier. Use decoy pricing. Regularly review and adjust. Price is a lever for positioning.
Optimize a blog post for search engines and readability. Checklist: 1. Target keyword in H1, first paragraph, and URL slug. 2. Use semantic keywords and LSI terms naturally. 3. Structure with H2/H3 subheadings every 300 words. 4. Add internal links to 3-5 related posts. 5. Include meta description (155 chars) and alt text for images. 6. Aim for 1500-2500 words with Flesch reading score 60+. Provide content brief template with search intent analysis.
Profile and optimize performance. Tools: 1. Chrome DevTools (Performance, Lighthouse). 2. React DevTools Profiler. 3. Node.js --prof and clinic.js. 4. Bundle analysis (webpack-bundle-analyzer). 5. Database query analysis (EXPLAIN). 6. APM tools (New Relic, DataDog). Focus on: render performance, bundle size, API latency, memory usage. Measure before optimizing. Profile in production-like environments.
Build a systematic cold email testing program. Setup: 1. Define hypothesis (subject line, CTA, length). 2. Split list into equal segments (minimum 100 contacts each). 3. Send variant A to segment 1, variant B to segment 2. 4. Wait 3-5 days for statistical significance. 5. Measure open rate, reply rate, meeting booked rate. 6. Calculate winner (minimum 95% confidence). 7. Roll out winner to remaining list. Variables to test: personalization depth, value proposition clarity, email length (50 vs 150 words), CTA placement. Use Lemlist or Woodpecker for tracking. Document learnings in playbook.
A technical guide to boosting email opens. Covers: 1. Subject line psychology. 2. Preheader text strategy. 3. Deliverability checks (SPF, DKIM). 4. Best times to send per timezone. 5. A/B testing variables. Includes 20 'High-Open' subject line templates for various industries (Finance, Creative, SaaS).
I have a slow-running SQL query. Here is the query: [paste query here]. And here is the table schema: [paste schema here]. Analyze the query and suggest ways to optimize it. Consider adding indexes, rewriting the query, or denormalizing the data.
Designed to take a messy user prompt and 'optimize' it for GPT-4o. The optimizer should add: 1. Specific Persona (Expert Scientist, Creative Writer). 2. Constraints (No jargon, under 200 words). 3. Step-by-step reasoning instructions. 4. Expected output format (JSON, Markdown). 5. Few-shot examples to guide the model.
Calculate and optimize pipeline velocity. Formula: (Number of Opportunities × Average Deal Size × Win Rate) ÷ Sales Cycle Length = Pipeline Velocity. Example: (50 opps × $10k × 25% win rate) ÷ 90 days = $1,389/day. How to improve: 1. Increase opportunities (better lead gen). 2. Increase deal size (upsell, target larger accounts). 3. Improve win rate (better qualification, demos). 4. Shorten sales cycle (remove friction, faster follow-ups). Track in CRM dashboard. Set weekly velocity targets. Identify bottleneck stages. Review with team in 1:1s.
Optimize subscription business. Levers: 1. Pricing tiers and packaging. 2. Free trial vs freemium. 3. Seamless signup and payment. 4. Onboarding for activation. 5. Feature gating and upsells. 6. Dunning for failed payments. 7. Pause option instead of cancel. 8. Annual prepay incentives. Focus on LTV:CAC and retention. Monthly vs annual billing considerations. Self-serve vs sales-assisted. Optimize each funnel stage.
Optimize database performance with indexes. Strategies: 1. Index foreign keys. 2. Composite indexes for multi-column queries. 3. Covering indexes to avoid table lookups. 4. Partial indexes for filtered queries. 5. Monitor query plans (EXPLAIN). 6. Avoid over-indexing (write performance). 7. Index selectivity matters. 8. Regular index maintenance. Use for WHERE, JOIN, ORDER BY. Not for small tables or high-write scenarios.
Detect and prevent memory leaks. Techniques: 1. Use browser DevTools memory profiler. 2. Heap snapshots comparison. 3. Clear event listeners on cleanup. 4. Unsubscribe from observables. 5. Clear timers and intervals. 6. Weak references for caches. 7. Avoid global variables accumulation. 8. Monitor production with tools like Sentry. Common causes: closures, forgotten subscriptions, detached DOM. Implement cleanup in useEffect/componentWillUnmount.
Design balanced sales territories for maximum coverage. Methodology: 1. Analyze market potential by geography/industry/company size. 2. Assess current account distribution and revenue. 3. Define territory boundaries (geographic, vertical, account-based). 4. Balance workload and opportunity across reps. 5. Assign accounts based on rep skills and relationships. 6. Set territory-specific quotas. 7. Plan for coverage gaps and transitions. Use CRM data and market intelligence. Minimize disruption to customer relationships. Review semi-annually. Aim for <20% variance in territory potential.
Optimize a slow-running SQL query on a 50M+ row table. Techniques to apply: 1. Add appropriate indexes on WHERE and JOIN columns. 2. Replace subqueries with CTEs (Common Table Expressions). 3. Use EXPLAIN ANALYZE to identify bottlenecks. 4. Partition large tables by date for faster scans. 5. Rewrite correlated subqueries as window functions. Provide before/after execution times and explain each optimization decision.
Design balanced sales territories for maximum coverage. Data inputs: accounts by geography, revenue potential, current customer concentration, sales rep capacity. Criteria for balance: 1. Equal revenue opportunity ($2-3M per rep). 2. Manageable account count (50-75 active accounts). 3. Geographic proximity (minimize travel). 4. Industry expertise alignment. Process: 1. Map all accounts on visualization tool. 2. Identify natural clusters. 3. Assign territories. 4. Calculate opportunity per territory. 5. Adjust for balance. 6. Get rep buy-in. Review quarterly. Tools: Maptive, Badger Maps, Salesforce Territory Management. Prevents neglected accounts and rep burnout.