Commit 5c93bf2
```julia-repl
x@fedora:~/.julia/dev/julia$ julia +pr59378
o | Version 1.13.0-DEV.1043 (2025-09-07)
o o | lh/hash-expr-union-split/8a95cf82d3d (fork: 8 commits, 14 days)
julia> expr = Meta.parseall(read("base/show.jl", String));
julia> using ChairmarksExtras
julia> @Btime expr hash
395.753 μs (23358 allocs: 364.969 KiB)
0x8e1ffc47fe5dc80b
julia> @Btime :(sin(x^2) + cos(x^2)) hash
144.778 ns (15 allocs: 240 bytes)
0xc837adb769107933
julia>
x@fedora:~/.julia/dev/julia$ julia +nightly
o | Version 1.13.0-DEV.1096 (2025-09-07)
o o | Commit 8a384ab (0 days old master)
julia> expr = Meta.parseall(read("base/show.jl", String));
julia> using ChairmarksExtras
julia> @Btime expr hash
826.924 μs (22422 allocs: 350.344 KiB)
0xf4f9c5fc15a95298
julia> @Btime :(sin(x^2) + cos(x^2)) hash
275.557 ns (14 allocs: 224 bytes)
0xc837adb769107933
```
Notably, the hash of that big expressions changes between these versions because it contains global refs that have different `objectid`s on these two versions.
---------
Co-authored-by: Neven Sajko <4944410+nsajko@users.noreply.github.com>
Co-authored-by: Andy Dienes <51664769+adienes@users.noreply.github.com>
1 parent 865b8be commit 5c93bf2
2 files changed
+38
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | | - | |
240 | 239 | | |
241 | 240 | | |
242 | 241 | | |
243 | 242 | | |
244 | | - | |
245 | 243 | | |
246 | 244 | | |
247 | 245 | | |
248 | 246 | | |
249 | 247 | | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
250 | 254 | | |
251 | 255 | | |
252 | 256 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2043 | 2043 | | |
2044 | 2044 | | |
2045 | 2045 | | |
2046 | | - | |
| 2046 | + | |
| 2047 | + | |
| 2048 | + | |
| 2049 | + | |
| 2050 | + | |
| 2051 | + | |
| 2052 | + | |
| 2053 | + | |
| 2054 | + | |
| 2055 | + | |
| 2056 | + | |
| 2057 | + | |
| 2058 | + | |
| 2059 | + | |
| 2060 | + | |
| 2061 | + | |
| 2062 | + | |
| 2063 | + | |
| 2064 | + | |
| 2065 | + | |
| 2066 | + | |
| 2067 | + | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
| 2071 | + | |
| 2072 | + | |
| 2073 | + | |
2047 | 2074 | | |
2048 | 2075 | | |
2049 | 2076 | | |
| |||
2053 | 2080 | | |
2054 | 2081 | | |
2055 | 2082 | | |
2056 | | - | |
| 2083 | + | |
2057 | 2084 | | |
2058 | 2085 | | |
2059 | 2086 | | |
2060 | 2087 | | |
2061 | | - | |
| 2088 | + | |
2062 | 2089 | | |
2063 | 2090 | | |
2064 | 2091 | | |
2065 | | - | |
| 2092 | + | |
2066 | 2093 | | |
2067 | 2094 | | |
2068 | 2095 | | |
2069 | | - | |
| 2096 | + | |
2070 | 2097 | | |
2071 | 2098 | | |
2072 | 2099 | | |
| |||
0 commit comments