diff options
author | Nicholas Clark <nick@ccl4.org> | 2011-01-07 15:46:57 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2011-01-07 15:46:57 +0000 |
commit | 8b563eef9044008579e8e4bac7e31e12a2e54bca (patch) | |
tree | a74d06f44ebe1d2b361e259f6fc9f96bf7834d4a /utf8.c | |
parent | 88c57d91d4b7719fac6165df201cdb8a4695aa24 (diff) | |
download | perl-8b563eef9044008579e8e4bac7e31e12a2e54bca.tar.gz |
In Perl_swash_init(), use call_sv() directly instead of call_method().
This gives a small space saving on this platform, likely due to code being
shared with the other call to call_sv(). (It also removes a level of function
call at runtime.)
Diffstat (limited to 'utf8.c')
-rw-r--r-- | utf8.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1948,7 +1948,7 @@ Perl_swash_init(pTHX_ const char* pkg, const char* name, SV *listsv, I32 minbits /* If we already have a pointer to the method, no need to use call_method() to repeat the lookup. */ if (method ? call_sv(MUTABLE_SV(method), G_SCALAR) - : call_method("SWASHNEW", G_SCALAR)) + : call_sv(newSVpvs_flags("SWASHNEW", SVs_TEMP), G_SCALAR | G_METHOD)) retval = newSVsv(*PL_stack_sp--); else retval = &PL_sv_undef; |