Skip to content

Avoid allocations when calling Resource.liftK#4589

Open
nmichael44 wants to merge 1 commit intotypelevel:series/3.xfrom
nmichael44:CreateCachedVersionOfLiftK
Open

Avoid allocations when calling Resource.liftK#4589
nmichael44 wants to merge 1 commit intotypelevel:series/3.xfrom
nmichael44:CreateCachedVersionOfLiftK

Conversation

@nmichael44
Copy link
Copy Markdown

Create a cached version of liftK so avoid allocations when method Resource.liftK is called. This is using the usual trick (relying on erasure).

This is a minor optimization (every little helps), but feel free to close the PR if you don't feel it's worth it.

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