bbcannon [10/06/02 14:43 -0600]:
> That sounds like a great idea if you know a
> more efficient way of creating an array from this string
> reference than Neil showed with his for loop.
> I'm very new to C, can you show me how to do this?

It seems to me that either way you'll be iterating through thousands of
entries. You might save a bit of overhead not going through an AV*, but I
suggest trying it first. Before using a complicated solution, you might as
well see whether the simple one is good enough. You're already in C, which is
very fast. Otherwise you're going to be taking a Perl array, using join() to
get a string, then basically splitting it up again from C into a C array. It
strikes me that this solution might be _slower_, since you could avoid the
join() and the split() by just converting the Perl array into a C array
directly.

Later,
Neil

Reply via email to