in reply to Optimizing non-alphanumeric method calls
It's hard to tell what you really need.
2 ideas
1. You didn't try the option $obj->$c_method with $c_method being a code ref. ( that's what can() returns ) ... this should be fastest after a caching phase along with direct.
2. If your method names are automatically generated try to convert non identifier into some kind of translation.
Have a look at control characters like ^c and so on.
Perl allows them for variables, maybe for method names too?
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Optimizing non-alphanumeric method calls
by trizen (Hermit) on Sep 27, 2015 at 18:55 UTC | |
by LanX (Saint) on Sep 27, 2015 at 19:12 UTC | |
by trizen (Hermit) on Sep 27, 2015 at 19:42 UTC | |
by LanX (Saint) on Sep 27, 2015 at 19:56 UTC | |
by BillKSmith (Monsignor) on Sep 27, 2015 at 20:10 UTC | |
by LanX (Saint) on Sep 27, 2015 at 20:21 UTC |