Skip to content

Optimize route path splitting with trim: true#4230

Closed
preciz wants to merge 1 commit into
phoenixframework:mainfrom
preciz:optimize-route-split
Closed

Optimize route path splitting with trim: true#4230
preciz wants to merge 1 commit into
phoenixframework:mainfrom
preciz:optimize-route-split

Conversation

@preciz
Copy link
Copy Markdown
Contributor

@preciz preciz commented May 10, 2026

Replace list comprehension filter with trim: true option in String.split/3 when parsing LiveView route paths.
Benchee shows a small speedup with consistently lower memory use.

Replace list comprehension filter with `trim: true` option in `String.split/3` when parsing LiveView route paths.
Benchee shows a small speedup with consistently lower memory use.
@chrismccord
Copy link
Copy Markdown
Member

At this level, I'm not sure it matters, but appreciate the look. If you want to follow up with benchy results please do, but we'd need a particularly good signal on the delta for small optimizations like this to justify the churn. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants