Your Python is
fast enough.
It isn't.
Two tools. One workflow. Optimize any Python function with an LLM-powered rewriter — then track it forever with an automated benchmark agent that blocks regressions before they ship.
def find_duplicates(items): duplicates = {} for i, item in enumerate(items): for j, other in enumerate( items[i+1:] Bottleneck: O(n) scan per iteration ): if item == other: if item not in duplicates: duplicates[item] = [] duplicates[item].append( (i, j) ) return duplicates
import itertools def find_duplicates(items): _combinations = itertools.combinations indices = {} for idx, item in enumerate(items): indices.setdefault( O(1) hash insertion item, [] ).append(idx) return { item: list(_combinations(idxs, 2)) for item, idxs in indices.items() if len(idxs) > 1 }
Not a linter.
Not a profiler.
ACENLY extracts the function's AST, identifies the complexity class, orchestrates targeted algorithmic rewrites, then stress-tests each candidate in an isolated subprocess before it ever reaches you.
AST extraction & complexity inference
ACENLY parses the function into an Abstract Syntax Tree. Nested loops, linear scans, and repeated membership checks are flagged as complexity liabilities — not just slow code, but structurally inefficient patterns.
Algorithmic rewrite generation
The LLM drafts multiple alternative implementations targeting lower Big-O classes — O(n²) → O(n), list scans → hash lookups, quadratic loops → single-pass aggregations. Surface-level changes are explicitly rejected.
Sandbox benchmarking & differential verification
Each variant runs inside an isolated subprocess against your real inputs. Timing is measured per-call. Output is compared element-by-element against the original. Code is only returned if it is faster and produces identical results.
Four tiers.
One pipeline.
ACENLY adapts the aggressiveness of its rewrite strategy based on the detected complexity class of the input function.
1.5× – 3× speedup on cache-friendly inputs.
dict.setdefault() or Counter patterns.
O(n²) → O(n) is the standard outcome. Memory usage may increase slightly due to auxiliary hash structures. Verified safe for all tested inputs.
Catch regressions
before they ship.
A second tool built into ACENLY. Track any function's performance across every commit. Block slow code at the git level. Visualize the full history in a dashboard.
Precise mode
Adaptive warmup + batch timing eliminates OS scheduler noise. Stable to ±3% even for 13 µs functions. Repeats N times and keeps the best result.
Git pre-push blocking
One command installs the hook. If any tracked function is more than 10% slower than the previous commit, the push is blocked — before CI, before review.
Dashboard & history
Every run is stored. Open the dashboard to see the full performance timeline — which commit slowed things down, by how much, and what the trend looks like.
CI / GitHub Actions
Drop the included Action into any workflow. Benchmarks run on every push with no additional configuration beyond a list of functions.
Two functions.
Two real runs.
These are the only two functions tested publicly so far. No cherry-picking.
setdefault and itertools.combinations. Output verified identical on all test cases.dict.fromkeys(), which preserves insertion order natively in Python 3.7+.Your model.
Your machine.
ACENLY is not a hosted service. You run it. You choose the model. Your code goes nowhere you don't authorize.
Ollama
Run any Ollama model. Nothing leaves your machine. No API key, no per-token cost, no data exposure.
Any provider
OpenAI, Together AI, or any OpenAI-compatible endpoint. Point ACENLY at the model that fits your budget and quality requirements.
Token tracking
Every run reports prompt and completion tokens consumed — so you know exactly what each optimization job cost before you pay the invoice.
Simple tiers.
No surprises.
Start free. Add the benchmark agent and regression blocking when your team needs it.
- LLM-powered optimizer
- Local Ollama or cloud model
- Precise benchmark mode
- Local dashboard
- Git hooks & regression blocking
- CI / GitHub Actions
- Shared team dashboard
- Everything in Basic
- Git pre-push regression blocking
- GitHub Actions CI integration
- Shared benchmark dashboard
- Unlimited tracked functions
- Self-hosted deployment
- SSO & audit log
- Everything in Teams
- Self-hosted deployment
- Custom LLM endpoint
- SSO / SAML
- Audit log
- Priority support & SLA
- API access
Common questions.
Get in touch.
Have a specific function you want to test, a question not covered above, or just want to talk? Send a message directly.