Group Abstract Group Abstract

Message Boards Message Boards

4
|
8.9K Views
|
4 Replies
|
6 Total Likes
View groups...
Share
Share this post:

Negative effects possible from "too many" LibraryFunctions?

Posted 10 years ago
POSTED BY: Szabolcs Horvát
4 Replies

Thank you, this is very useful information! I can use lazy loading, so that's no problem.

POSTED BY: Szabolcs Horvát
Posted 10 years ago

Another way would be to generate C code from the compiled functions and find a way to join the source files into a single one, and then compile it into a single dll containing all functions, similarly to what you would get when compiling manually a LibraryLink dll in Visual C++ for example.

POSTED BY: Faysal Aberkane

Actually the original question was about a single library (single DLL), containing many (hundreds) of manually written C functions. But it does not seem to be a problem.

POSTED BY: Szabolcs Horvát

I will just pass the other's word, but don't ask me for details. I just hope it will give you a hint.

I don't think there is any intrinsic problem with many LibraryLink functions other than the time and resources they take to load. But once they are loaded they should not interfere or slow down due to large numbers of functions. We know cases of loading about 600 functions and this didn't stop it working, just made it slow to load. A way around that is to just load the library functions lazily. Another case has ~800 functions and loads everything lazily, which means you only pay for the functions you use.

POSTED BY: Vitaliy Kaurov
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard