-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic Object Loading #25
Comments
此功能需要从一开始设计的时候考虑进去,比如对各种算法调用的同时,需要判断是否so已经加载 |
DSO实现大概有两种方式,一种借助OS提供的系统调用直接加载链接库(如Linux中的,dlopen/dlsym/dlclose,Windows中的LoadLibraryExW等接口),一种类似于apache自己实现一套接口(apr_dso_load/apr_dso_unload/apr_dso_sym/apr_dso_error,共四个接口),对不同的OS环境进行解耦。 关于Apache的具体做法参考: |
目前看来还是加一层比较合理 |
类似于DSO那种,即每个feature都编译成so,然后启动的时候只加载base.so,此为体积最小。然后在比如进行TLS握手的同时,临时加载所需的so,比如SM4-GCM的so。这样属于时间换空间,即性能下降但体积可以做到极小
The text was updated successfully, but these errors were encountered: