On Wed, Apr 15, 2015 at 12:42 PM, Thiago Macieira <thiago.macieira at intel.com
> wrote:

> On Wednesday 15 April 2015 11:09:36 Othman, Ossama wrote:
> > On Wed, Apr 15, 2015 at 11:06 AM, Keane, Erich <erich.keane at intel.com>
> >
> > wrote:
> > >  65k is still a pretty huge library, that?s larger than our current
> CSDK
> > >
> > > stack?
> >
> > It's still far better than the 1+ MB glib library. :)
>
> Yeah, but if you replace with a mostly inline wrapper around the platform
> primitives, that cost should be asymptotically close to zero, which is
> still a
> lot better than 65k :-)
>

I understand what you're saying but that sounds like it's going to be a
maintenance headache, especially when dealing with multiple platform
ports.  Regarding potential alternatives like OpenMP, assuming IoTivity
statically links such a library only the object files in the archive
containing the required symbols are going to be linked, which should drop
the added footprint significantly.  I don't think we should assume that the
proposed inline wrapper is going to be close to zero in size (especially if
we have to implement support for higher level functionality like thread
pools), nor do I necessarily think OpenMP is the best choice.  Before any
decisions are made I think it's best to profile the various options.

-Ossama
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150415/b5fe18ec/attachment.html>

Reply via email to