0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 9.0.1895: Vim9: finding object method/member is inefficient

Problem:  Vim9: finding method/member is inefficient
Solution: Use lookups

closes: #13073

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Ernie Rael <errael@raelity.com>
This commit is contained in:
Ernie Rael
2023-09-11 19:54:42 +02:00
committed by Christian Brabandt
parent f787ee8451
commit 4d00b835c4
4 changed files with 103 additions and 65 deletions

View File

@@ -1838,9 +1838,7 @@ generate_CALL(
{
class_T *clp = mtype->tt_class;
char_u *aname = ((char_u **)ufunc->uf_args.ga_data)[i];
int m_idx;
ocmember_T *m = object_member_lookup(clp, aname, 0,
&m_idx);
ocmember_T *m = object_member_lookup(clp, aname, 0, NULL);
if (m != NULL)
expected = m->ocm_type;
}