Hiding implementation details


#1

Hi,
would it be possible to move the implementation from the ChaiScript headers into the source files?
Or at least to have an option to do so when building the library.

Thanks


#2

Not really, no. At least 60% of what ChaiScript does is template instantiations, and there’s no way to hide that.

What is it that you need or want to accomplish?

-Jason


#3

Never mind, I understand. It’s just that compiling becomes slow when prototyping applications if each of our generated object files has at least 35 MB unnecessary overhead.


#4

35MB is huge. I’ve not seen any use of ChaiScript that was that big. There are several ways to limit which object files have generated ChaiScript in them, also.

Is there any possibility that your project is open source and I might be able to check out how you are using it?