Keep It Simple, Stupid | |
PerlMonks |
Re^4: Why not perl have raw/native typeby ikegami (Patriarch) |
on Jan 11, 2020 at 06:04 UTC ( [id://11111315]=note: print w/replies, xml ) | Need Help?? |
None of those steps are skipped. The check needs to be performed if nothing else.
hmmm. The long list of checks I mentioned and similar ones are constantly being made. It's is quite a drain. Is it cheap compared to the rest that Perl does? If you mean the guts of operations like doing a regex match or making a system call? sure. But compared to overheads in Perl? not really. (The things you identified basically happen at compile-time, except for what amounts to a C struct lookup. They're definitely not drains!)
They do. You could get great speed boosts if you could leave out a lot of checks.
In Section
Seekers of Perl Wisdom
|
|