Skip to content

Swap the positions of Integer and OffsetInteger in promote_rule - #289

Open
kimikage wants to merge 1 commit into
JuliaGeometry:masterfrom
kimikage:promote_rule_oi_it
Open

kimikage wants to merge 1 commit into
JuliaGeometry:masterfrom
kimikage:promote_rule_oi_it

Conversation

@kimikage

@kimikage kimikage commented Dec 2, 2026 •

Copy link
Copy Markdown

Unfortunately, it appears that the actual number of invalidations remains unchanged in real-world cases, but the risk of this promote_rule triggering invalidations is reduced. (cf. Issue #284)

@kimikage

kimikage commented Dec 2, 2026

Copy link
Copy Markdown
Author
julia> using SnoopCompileCore

julia> invs = @snoop_invalidations using CairoMakie;

julia> using SnoopCompile

julia> length(uinvalidated(invs))
3504 # before
3503 # after (the difference is just noise)

julia> versioninfo()
Julia Version 1.13.4
Commit c1ac32ab73 (2026-11-13 17:30 UTC)
Build Info:
  Official https://julialang.org release
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 8 × 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
  WORD_SIZE: 64
  LLVM: libLLVM-20.1.8 (ORCJIT, tigerlake)
  GC: Built with stock GC
Threads: 1 default, 1 interactive, 1 GC (on 8 virtual cores)

This branch has not been deployed

No deployments
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.

1 participant