#1836 closed task (fixed)
reduce memory footprint
Reported by: | Antoine Martin | Owned by: | J. Max Mena |
---|---|---|---|
Priority: | major | Milestone: | 2.4 |
Component: | core | Version: | 2.3.x |
Keywords: | Cc: |
Description
- don't load modules until we actually need them
- if we probe then discard them (ie: codec probing), make sure we unload the library
Change History (4)
comment:1 Changed 3 years ago by
Status: | new → assigned |
---|
comment:2 Changed 3 years ago by
Owner: | changed from Antoine Martin to J. Max Mena |
---|---|
Status: | assigned → new |
According to https://stackoverflow.com/a/29579072/428751: CPython never unloads its C extension modules.
As for the packet encoders and packet compressors, it would be really tedious to use lazy loading here and those libraries are very small anyway.
So this will do for now.
@maxmylyn: mostly a FYI, you probably won't be able to spot the small decrease in memory usage unless you also take advantage of #1838 to completely turn off some subsystems.
comment:4 Changed 3 months ago by
this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/1836
Note: See
TracTickets for help on using
tickets.
Done:
XpraProxy
until actually neededcrypto_backend_init
unconditionallyStill TODO - probably using imp.find_module to do a lazy module presence check: