Commits on Source (8)
-
Helper that can be used by any accesses, that will save up to 5 contexts up to 5 seconds (both configurable with a define). This helper create its own thread that will release the resources when unused. This helper also use the gcc destructor attribute to clean everything when the library is unloaded. This helper need a destructor, thus it can only be used with gcc and clang.
6dcd24dc -
074209c0
-
25654510
-
Instead of using the same context from the access_sys struct.
3b4a40e9 -
No functional changes.
e9510183 -
Cache the smb2 session when closing. It will be re-used if an other access is opened on the same server/share/username within 5 seconds. Small benchmark, time to open the smb2 access: - 200 - 250ms without cache - 20 - 30 ms with a cache
a2357357 -
7dd7780d
-
Cache the dsm session when closing. It will be re-used if an other access is opened on the same server/share/username within 5 seconds. Small benchmark, time to open the dsm access: - 100 - 150 ms without cache - 1 ms with a cache
31f97cbe
Showing
- modules/access/Makefile.am 9 additions, 2 deletionsmodules/access/Makefile.am
- modules/access/cache.c 201 additions, 0 deletionsmodules/access/cache.c
- modules/access/cache.h 135 additions, 0 deletionsmodules/access/cache.h
- modules/access/dsm/access.c 81 additions, 14 deletionsmodules/access/dsm/access.c
- modules/access/smb2.c 224 additions, 137 deletionsmodules/access/smb2.c
modules/access/cache.c
0 → 100644
modules/access/cache.h
0 → 100644