https://github.com/JuliaLang/julia
Revision a9e317b27f612e34d2ffc6c2e6793e74fb54c063 authored by Shuhei Kadowaki on 17 September 2022, 03:16:33 UTC, committed by Jameson Nash on 20 May 2023, 01:28:18 UTC
Previously we didn't limit the number of matching methods for
`Core.Compiler.return_type`, which could lead to a potential latency
problem.
This commit makes `Core.Compiler.return_type` and the corresponding
tfunc `return_type_tfunc` respect `max_methods` setting as like the
ordinary inference.
One caveat here is that the current `Core.Compiler.return_type` interface
unfortunately doesn't allow it to see the caller module context, so it
can't respect module-wide `max_methods` setting (I guess the change to
the interface should be made as of version 2.0), that I think can lead
to a potential confusion.
1 parent 5dafc84
History
Tip revision: a9e317b27f612e34d2ffc6c2e6793e74fb54c063 authored by Shuhei Kadowaki on 17 September 2022, 03:16:33 UTC
inference: make `Core.Compiler.return_type` respect `max_methods` setting
Tip revision: a9e317b
File Mode Size
.devcontainer
.github
base
cli
contrib
deps
doc
etc
src
stdlib
test
.buildkite-external-version -rw-r--r-- 5 bytes
.clang-format -rw-r--r-- 3.3 KB
.clangd -rw-r--r-- 114 bytes
.codecov.yml -rw-r--r-- 52 bytes
.git-blame-ignore-revs -rw-r--r-- 371 bytes
.gitattributes -rw-r--r-- 65 bytes
.gitignore -rw-r--r-- 514 bytes
.mailmap -rw-r--r-- 12.1 KB
CITATION.bib -rw-r--r-- 513 bytes
CITATION.cff -rw-r--r-- 940 bytes
CONTRIBUTING.md -rw-r--r-- 23.1 KB
HISTORY.md -rw-r--r-- 363.4 KB
LICENSE.md -rw-r--r-- 1.3 KB
Make.inc -rw-r--r-- 54.5 KB
Makefile -rw-r--r-- 29.8 KB
NEWS.md -rw-r--r-- 5.3 KB
README.md -rw-r--r-- 7.3 KB
THIRDPARTY.md -rw-r--r-- 3.8 KB
VERSION -rw-r--r-- 11 bytes
julia.spdx.json -rw-r--r-- 35.8 KB
pkgimage.mk -rw-r--r-- 5.8 KB
sysimage.mk -rw-r--r-- 4.2 KB

README.md

back to top