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
897d4af16c
Merge remote-tracking branch 'td/master'
2021-09-25 19:24:57 +02:00
levlam
db18baa503
Unify include order.
2021-09-19 00:47:05 +03:00
Andrea Cavalli
71c2330749
Merge remote-tracking branch 'td/master'
2021-09-14 23:58:34 +02:00
levlam
088c3169d4
Minor.
2021-09-10 18:23:23 +03:00
Andrea Cavalli
a20e8b6db3
Merge remote-tracking branch 'td/master'
2021-09-04 16:03:33 +02:00
levlam
86de43a048
Remove useless #include comments.
2021-09-03 23:21:44 +03:00
levlam
6801eabb8d
Add some FileView emptiness checks.
2021-09-16 16:58:30 +03:00
Andrea Cavalli
232ce6e4d3
Merge remote-tracking branch 'td/master'
2021-08-23 02:22:28 +02:00
levlam
b1eb6db7b5
Minor logging improvements.
2021-08-26 21:44:29 +03:00
levlam
209dd8b41b
Don't drop fully uploaded partial secure location.
2021-08-26 21:20:55 +03:00
levlam
897a4e26a7
Allow RemoteFileLocation logging.
2021-08-26 20:34:51 +03:00
Andrea Cavalli
b847c925db
Merge remote-tracking branch 'td/master'
2021-07-30 10:59:01 +02:00
levlam
c2028aed4f
Add limit on maximum videoNote size.
2021-07-29 23:39:07 +03:00
Andrea Cavalli
6b93b00f6a
Merge remote-tracking branch 'td/master'
2021-07-27 23:35:50 +02:00
levlam
5b4a657228
Minor include fixes.
2021-08-05 01:09:39 +03:00
levlam
07630feb8c
Add td_api::getSuggestedFileName.
2021-07-24 07:19:22 +03:00
levlam
8e750b867c
Simplify PSLICE usage in FileLoaderUtils.
2021-07-23 20:56:44 +03:00
levlam
85fab586ef
Increase file size for reuse_uploaded_photos_by_hash just in case.
2021-07-21 03:26:47 +03:00
levlam
2a9f83cd94
Don't dup URL file identifiers.
2021-07-21 03:16:55 +03:00
levlam
2641ffed31
Improve logging in FileManager.
2021-07-20 18:49:29 +03:00
Andrea Cavalli
3dde04b17f
Merge remote-tracking branch 'td/master'
2021-07-17 11:15:40 +02:00
levlam
40c5d47717
Make inherited classes final if possible.
2021-07-04 05:58:54 +03:00
levlam
edfa5d1d98
Use final instead of override.
2021-07-03 23:51:36 +03:00
Andrea Cavalli
c41ec7df43
Merge remote-tracking branch 'td/master'
2021-06-30 13:31:50 +02:00
levlam
50a8e66965
Improve error messages.
2021-06-26 04:20:59 +03:00
levlam
eb134b02f2
Improve error messages.
2021-06-25 21:21:17 +03:00
levlam
8db4febd4c
Minor improvements.
2021-06-02 15:43:56 +03:00
levlam
9cecc116f3
Prefer US spelling of "canceled".
2021-05-31 21:51:48 +03:00
Andrea Cavalli
2c77e82300
Merge remote-tracking branch 'td/master' into dev
2021-05-27 00:50:41 +02:00
levlam
a6a4eb6616
Don't include SliceBuilder.h in logging.h.
2021-05-17 15:21:11 +03:00
levlam
17a1015f6b
Remove dependency of PSLICE/PSTRING on Logger, move them to separate header and make them always safe.
2021-05-17 03:24:54 +03:00
Andrea Cavalli
40048f12ca
Merge
2021-05-04 22:17:39 +02:00
levlam
75e593fd51
Return errors with code 400 from FileManager::from_persistent_id.
2021-04-29 16:04:04 +03:00
Andrea Cavalli
78291a96d4
Merge commit '70b71d569b81c66b25f8f77d9536b1d41fbf091d'
2021-03-21 01:04:45 +01:00
levlam
0339921102
Improve some spelling.
2021-03-15 03:32:14 +03:00
Andrea Cavalli
3e53ba98d3
Fix file manager
2021-03-13 00:25:19 +01:00
Andrea Cavalli
9115565603
Fix file manager
2021-03-12 21:12:01 +01:00
Andrea Cavalli
ce9a9ebbf9
Clean memory only if needed
2021-03-12 19:41:27 +01:00
Andrea Cavalli
4a1b295baa
Undo breaking database modifications, add tl-parser
2021-03-12 12:31:51 +01:00
Andrea Cavalli
1ea79d2739
Merge latest commits
2021-03-11 18:25:39 +01:00
levlam
67889cdcbc
Add td_api::getGroupCallStreamSegment.
2021-03-10 22:50:14 +03:00
levlam
e031a2c6c1
Improve Slice::truncate usage.
2021-02-04 15:54:12 +03:00
levlam
ef59e47807
Fix uploadImportedMedia.
2021-01-26 02:55:48 +03:00
levlam
15fe7f7a04
Rename suggested_name to suggested_path.
2021-01-26 02:39:48 +03:00
levlam
bff723436a
Upload inported messages as small files.
2021-01-22 18:13:38 +03:00
levlam
6f38576467
Add FileManager::guess_file_type.
2021-01-22 15:17:56 +03:00
Andrea Cavalli
a84a9f472d
Bugfixes
2021-01-12 17:12:29 +01:00
levlam
4bb76a7b6f
Update layer to 128. Remove photo volume_id/local_id.
2021-04-16 17:43:51 +03:00
Andrea Cavalli
a79f835de0
Add memory_cleanup on tear_down, and add more memory_cleanup.
2021-01-12 01:37:17 +01:00