Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Base: loading: create_expr_cache: use push! instead of vcat #57643

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

nsajko
Copy link
Contributor

@nsajko nsajko commented Mar 5, 2025

It seems like vcat is not very inference-friendly, intentionally avoiding specialization in many cases. Using push! (after copy-ing) instead should lead to less vulnerability to invalidation in the compiled code.

It seems like `vcat` is not very inference-friendly, intentionally
avoiding specialization in many cases. Using `push!` (after `copy`-ing)
instead should lead to less vulnerability to invalidation in the
compiled code.
@nsajko nsajko marked this pull request as draft March 5, 2025 13:48
@KristofferC
Copy link
Member

What's exactly the issue with vcat here? Does vcat(::Vector{T}, ::T) have inference problems? In that case, maybe that could be fixed instead of not using it?

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

Successfully merging this pull request may close these issues.

2 participants