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
3dde04b17f
Merge remote-tracking branch 'td/master'
2021-07-17 11:15:40 +02:00
levlam
f86a1e09fe
Fix maximal number of used threads on Windows.
2021-07-10 02:08:03 +03: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
8db4febd4c
Minor improvements.
2021-06-02 15:43:56 +03:00
Andrea Cavalli
2c77e82300
Merge remote-tracking branch 'td/master' into dev
2021-05-27 00:50:41 +02:00
levlam
d34680b83f
Remove set_log_fatal_error_callback. Add td_set_log_message_callback, deprecate td_set_log_fatal_error_callback.
2021-05-18 04:41:09 +03:00
Andrea Cavalli
1ce823b0e6
Merge commit '1bbcc01091c8ca92f79821790b8857edb5a1b6b4'
2021-04-03 12:53:29 +02:00
levlam
4df03c8491
Clamp float numbers before conversion to integers.
2021-03-28 22:33:22 +03:00
Andrea Cavalli
4a1b295baa
Undo breaking database modifications, add tl-parser
2021-03-12 12:31:51 +01:00
Andrea Cavalli
85fb357a19
Merge commit '82f0386e73b7128a8aafec5bfa7dd825fe94ac39'
...
Conflicts:
td/telegram/MessagesManager.cpp
2021-01-02 12:57:08 +01:00
levlam
82f0386e73
Move some functions from misc.h to algorithm.h.
2021-01-01 16:01:03 +03:00
levlam
52c1da0a70
Update copyright year.
2021-01-01 15:57:46 +03:00
Andrea Cavalli
3c59d917be
Merge remote-tracking branch 'td/master'
2020-11-23 17:27:14 +01:00
levlam
6571a99b45
Include ConcurrentScheduler separately.
2020-11-23 03:24:36 +03:00
levlam
52653d6bf1
Do not try to attach to JVM after exit.
2020-11-23 00:18:01 +03:00
levlam
155c12edea
Improve ConcurrentScheduler closing on exit.
2020-11-22 23:30:40 +03:00
levlam
6044ee83fb
Fix Client_SimpleMulti test on macOS.
2020-11-22 16:26:00 +03:00
Andrea Cavalli
cba9f74cba
Merge remote-tracking branch 'td/master'
2020-11-22 01:11:21 +01:00
levlam
d5da47510d
Minor fixes.
2020-11-20 01:32:58 +03:00
Andrea Cavalli
bc0f162ad6
Merge commit '78e45da6b9014f8efd96cee0ad5701464d911cc7'
2020-11-15 18:16:02 +01:00
levlam
5eea5b7501
Rename create_client to create_client_id.
2020-11-15 01:13:11 +03:00
Andrea Cavalli
e4bcc81ec7
Merge commit '00abe2f4019717c6479e30c588059a3cfd3be58e'
...
Conflicts:
td/generate/scheme/td_api.tlo
2020-11-14 11:11:47 +01:00
levlam
6a9cd72636
Don't create client through ClientManager until first request is sent to it.
2020-11-12 14:45:18 +03:00
levlam
597c0d2983
Add checks that client ID doesn't overflow.
2020-11-12 01:19:30 +03:00
Andrea Cavalli
1f7c4e2508
Remove death_handler
2020-11-06 14:27:05 +01:00
Andrea Cavalli
423d05f18e
Remove death handler if using musl
2020-11-05 21:58:40 +01:00
Andrea Cavalli
134d20b7ec
Merge commit 'bf945e05be9a9f696bdd866cc3427ac1bc7a4825'
2020-10-26 21:55:16 +01:00
Arseny Smirnov
add7211707
tdweb: 1.6.9
...
GitOrigin-RevId: e1124a86c021c43c42ad00dc18dc9db0cbcacad1
2020-10-20 22:23:52 +03:00
Andrea Cavalli
7654c2706a
Update Client.cpp
2020-10-13 03:11:19 +02:00
Andrea Cavalli
85bf271fb8
Update Client.cpp, Log.cpp, and 4 more files...
2020-10-12 19:50:17 +02:00
Andrea Cavalli
d3b2f81269
Revert standard client implementation
2020-10-12 19:18:48 +02:00
Andrea Cavalli
fc5b0e9d06
Merge commit '6b1f6b829d0d71f5d50662b1ff58b7869c1e1d7f'
...
Conflicts:
td/telegram/Client.cpp
td/telegram/cli.cpp
2020-10-12 16:15:14 +02:00
Andrea Cavalli
0da9b62eda
Merge commit '7207d76a809598d019e17fb04b2edc46789c6e22'
...
Conflicts:
td/telegram/Client.cpp
2020-10-12 16:12:59 +02:00
Andrea Cavalli
f423fc0d81
Merge commit '35a9a93fc9adfbced4d5f59baf0c72a2f807f28a'
...
Conflicts:
td/telegram/Client.cpp
td/telegram/StickersManager.cpp
td/telegram/WebPagesManager.cpp
2020-10-12 16:10:48 +02:00
Andrea Cavalli
ef9e05a805
Merge commit '1cfa7545c938212b8976eafe3055fe161b8fd7c4'
...
Conflicts:
td/telegram/Client.cpp
2020-10-12 16:05:01 +02:00
Andrea Cavalli
76cd17e861
Merge commit '74987bf8f08b28001b04da94044528dc169cc90b'
2020-10-12 16:00:25 +02:00
Andrea Cavalli
2b69eef4a5
Merge commit 'd87558177241862f7db1b934f8a211b94180f28b'
...
Conflicts:
td/telegram/Client.cpp
2020-10-12 15:59:54 +02:00
Andrea Cavalli
ccaec7e042
Merge commit '3fc140b4a260c606e5c6d79ef148d4beeb37048a'
...
Conflicts:
td/telegram/Client.cpp
td/telegram/Client.h
2020-10-12 15:41:34 +02:00
levlam
9856b0e46e
Add some workariunds for crashes on exit without closing all clients.
...
GitOrigin-RevId: 5c74e9fe6951b6a8eb65d6c1e5ddf7bf8e0c8163
2020-10-11 21:21:38 +03:00
levlam
714f037f15
Move ClientManager singleton creation to ClientManager::get_manager_singleton.
...
GitOrigin-RevId: 071b947ff072186c70387cbd00f1c6b1c17d0e6b
2020-10-11 11:08:56 +03:00
levlam
09f906f192
Protect access to some static variables using ExitGuard.
...
GitOrigin-RevId: 65c7510c60d585b90e90d09067c7dfdaf79c4cd3
2020-10-11 01:59:27 +03:00
levlam
c484cc4773
Postpone td_api::authorizationStateClosed until the client is fully closed.
...
GitOrigin-RevId: 064696a00110c1f567b6da6afbee58d868ff4938
2020-10-10 22:08:41 +03:00
levlam
2850e596d3
Fix ConcurrentScheduler guard usage.
...
GitOrigin-RevId: 6f4dd470a690cdbe98870c89433634b31136f832
2020-10-10 22:05:20 +03:00
levlam
38f72b353a
Clear ClientManager when the last Client is closed.
...
GitOrigin-RevId: d2d5194f7ffc59dc8db1196401c80689a8645dac
2020-10-09 15:39:30 +03:00
levlam
b491964a81
Store TdReceiver by value.
...
GitOrigin-RevId: 51dbcaf815c5ba1a42539242b1e57b456f188d38
2020-10-09 14:25:06 +03:00
levlam
35a9a93fc9
Fix std::...::erase return value usages.
...
GitOrigin-RevId: d9729ccd619e3b99554f1e1c2262d8826f0a8571
2020-10-08 23:04:40 +03:00
Arseny Smirnov
cee68e5a48
Client: bugfix
...
GitOrigin-RevId: 0267cb2475fecae85d85f03abc96215762dc46e0
2020-10-08 16:14:01 +03:00