Re: [PATCH 1/2] Allow for more than one PERL_MAGIC_ext magic



Florian Ragwitz <rafl debian org> writes:

+void
+gperl_attach_mg (SV * sv, void * ptr)
+{
+     sv_magicext (sv, NULL, PERL_MAGIC_ext, &gperl_mg_vtbl,
+                  (const char *)ptr, 0);

I suppose the alternative to magic would be a pointer->pointer hash
table would it?  Would that be slower than hanging it in the magic list?
Or on the other hand does the magic mean a check in there for all hash
operations on objects?



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]