Skip to content

malli.impl.util perf ideas#1179

Draft
frenchy64 wants to merge 1 commit intometosin:masterfrom
frenchy64:miu-perf
Draft

malli.impl.util perf ideas#1179
frenchy64 wants to merge 1 commit intometosin:masterfrom
frenchy64:miu-perf

Conversation

@frenchy64
Copy link
Collaborator

@frenchy64 frenchy64 commented Mar 20, 2025

Here are some ideas for performance improvements to malli.impl.util. These were all by eye, let me know if they don't seem obviously better and I will look into it.

The OR/AND macro compiles to leaner JVM bytecode if you're returning booleans, originally developed in collaboration with @alexander-yakushev.

@frenchy64 frenchy64 added the WIP work in progress, not ready yet label Mar 26, 2025
Copy link
Member

@opqdonut opqdonut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I happened to bump into this PR only now. Looks ok, but I would appreciate a commend and some benchmark results to prove the perf improvement.

`(let [~@bs]
(fn [~arg] ~body)))))

#?(:clj (defmacro OR
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add a comment about the leaner bytecode thing

@opqdonut opqdonut moved this to ⌛Waiting in Metosin Open Source Backlog Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

WIP work in progress, not ready yet

Projects

Status: ⌛Waiting

Development

Successfully merging this pull request may close these issues.

2 participants