I am writing a Perl backend for OpenLDAP. I need to pass C structures to Perl into Perl objects.
One way to achieve this is via the Perl Stack. call first new to create the object, put every variable from the struct onto the stack, and call the init method wich imports the data into Perl Space.
Would it not be more performent to put a pointer to the structure onto the stack and let then Perl fiddle around with the structure ? Maybe that not the whole structure is needed, so the further methods use also what's needed ?
Thx for any advice