summaryrefslogtreecommitdiff
path: root/utf8.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2011-01-07 15:46:57 +0000
committerNicholas Clark <nick@ccl4.org>2011-01-07 15:46:57 +0000
commit8b563eef9044008579e8e4bac7e31e12a2e54bca (patch)
treea74d06f44ebe1d2b361e259f6fc9f96bf7834d4a /utf8.c
parent88c57d91d4b7719fac6165df201cdb8a4695aa24 (diff)
downloadperl-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utf8.c b/utf8.c
index 8b05cfda01..266cb9e5a4 100644
--- a/utf8.c
+++ b/utf8.c
@@ -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;