Commit Graph

12 Commits

Author SHA1 Message Date
Andrea Cavalli
45e855f89d Remove most memory related features
I can't maintain anymore this amount of features while keeping the library constantly updated and without bugs. Every merge was taking me multiple hours of revisioning the code. I give up.
From this commit onwards TDLight will only have small useful customizations that are easy to maintain.
Now the people relying on the OptimizeMemory method can restart the session every N hours to free up the memory.
The real way to keep a low memory usage must involve a huge refactoring to allow the unloading of the caches into the sqlite database, similar to what's already happening with messages data. Only Levlam has the ability to implement this without needing to merge the upstream everytime.
2021-09-25 22:11:42 +02:00
Andrea Cavalli
268fd8c4a9 Print warning 2021-08-24 17:34:15 +02:00
Andrea Cavalli
2bcb81bec0 Describe memory cleanup errors 2021-03-13 11:58:58 +01:00
Andrea Cavalli
ce9a9ebbf9 Clean memory only if needed 2021-03-12 19:41:27 +01:00
Andrea Cavalli
a79f835de0 Add memory_cleanup on tear_down, and add more memory_cleanup. 2021-01-12 01:37:17 +01:00
Andrea Cavalli
7ef40eea0c Group call patches
Add disable_group_calls boolean option
Add memory_cleanup and memory_stats to FileReferenceManager
Add memory_cleanup and memory_stats to GroupCallManager
2020-12-28 16:10:05 +01:00
Andrea Cavalli
7e0b964137 Fix #3 2020-12-25 02:34:42 +01:00
giuseppeM99
56a925ac90
Fix bad_alloc in get_memory_stats 2020-12-13 13:34:19 +01:00
Andrea Cavalli
d34a45ec83 Remove malloc_trim with musl 2020-11-05 12:48:59 +01:00
Andrea Cavalli
70b9b6764f Bugfixes 2020-10-25 20:52:25 +01:00
Andrea Cavalli
09e23b61cf Fix json formatting, fix cmake windows support 2020-10-25 10:08:13 +01:00
Andrea Cavalli
017073e0a2 Add memory optimize and memory stats methods 2020-10-25 03:20:24 +02:00