in reply to Re^5: XS/Inline::C concat *any* two SVs.
in thread XS/Inline::C concat *any* two SVs.
well, sometimes they are aliased but relying on this knowledge will not help you understanding,
Actually, that is exactly the type of understanding I hope to aquire. The very purpose of dropping into XS to code is to achieve better performance. If you throw away half that potential by unnecessarially replicating data, there is no point in going there in the first place.
The purpose of the exercise is to learn how to correctly use and benefit from using Perl's scalar classes from within XS code.
Dealing with scalars that might be NVs, IVs, UVs and readonly is only the first part of the exercise. There are also RVs, tied scalars, blessed scalars etc. When I posted, I was hoping for insights into dealing with these also. I never expected to get hung up on dealing with readonly inputs.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: XS/Inline::C concat *any* two SVs.
by vkon (Curate) on May 29, 2006 at 18:49 UTC | |
by BrowserUk (Patriarch) on May 30, 2006 at 05:59 UTC |