lucy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Wellnhofer <wellnho...@aevum.de>
Subject [lucy-dev] OFFSET globals
Date Thu, 19 Apr 2012 16:12:05 GMT

Attached is a patch that replaces the OFFSET globals with NUM #defines 
which contain the method number. This more than halves the number of 
extern symbols in Lucy.so. The only cost is a constant add for every 
method invocation which should be negligible.

This also removes the use of offsetof in parcel.c, so we don't need the 
definition of the VTable struct in that file.

Thoughts?

Nick

Mime
View raw message