fixes #18612; apply cache and memcmp for methods in arc/orc (#19749)

* try using endsWith

* use memcmp

* add cache

* cleanup

* better

* minor

* fix

* improve test coverage for methods with ARC
This commit is contained in:
flywind 2022-04-27 02:14:39 +08:00 • committed by GitHub
commit 8bfc396a4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 45 additions and 7 deletions

View file

@ -1,4 +1,5 @@
discard """
matrix: "--mm:arc; --mm:refc"
output: '''wow2
X 1
X 3'''

View file

@ -1,4 +1,5 @@
discard """
matrix: "--mm:arc; --mm:refc"
output: '''
wof!
wof!

View file

@ -1,4 +1,5 @@
discard """
matrix: "--mm:arc; --mm:refc"
output: '''
do nothing
HELLO WORLD!

View file

@ -1,5 +1,5 @@
discard """
cmd: "nim c --multimethods:off $file"
matrix: "--mm:arc --multimethods:off; --mm:refc --multimethods:off"
output: '''base
base
base