Commit Graph

1250 Commits

Author SHA1 Message Date
levlam
d963044eb9 Update copyright year. 2024-01-01 03:07:21 +03:00
levlam
c4fe2defc6 Keep source files sorted in CMakeLists.txt. 2023-12-29 14:09:50 +03:00
levlam
511483e12c Fail HTTP request reading if unexpected end of data reached. 2023-11-25 02:34:37 +03:00
levlam
247c28d6e7 Fix UTF-8 encoding check of a string. 2023-11-15 13:44:29 +03:00
levlam
efa6e20ba2 Improve error messages from JsonObject::get_..._field. 2023-11-15 13:40:32 +03:00
levlam
9c9c1bb51c Minor improvements. 2023-10-28 00:06:56 +03:00
levlam
605a3af4b2 Add and use td::any_of. 2023-10-21 20:41:31 +03:00
AYMEN Mohammed
50c3bf2e4f
Fix typos. (#2641) 2023-10-18 19:12:31 +03:00
levlam
91b57ccceb Suppress logging if failed to find Crc32c, Readline or Git. 2023-10-15 00:23:01 +03:00
Zephyr Lykos
ebd77d5152 Export static targets in a separate file 2023-10-14 23:56:00 +03:00
Zephyr Lykos
5881dde135 Fix finding CRC32C 2023-10-14 23:56:00 +03:00
levlam
e0731b1935 Don't use deprecated EM_LOG_FUNC_PARAMS flag. 2023-10-05 23:23:20 +03:00
levlam
ceaa37fe0d Simplify set_dialog_is_pinned implementation. 2023-10-01 21:49:15 +03:00
levlam
16cec9c2fb Add td::add_to_top. 2023-10-01 20:59:29 +03:00
levlam
6076e0e2a6 Pass field names as Slice for another 15% speed up. 2023-09-29 14:05:21 +03:00
levlam
d84a021a48 Use StringBuilder in TlStorerToString to speed up it 2 times. 2023-09-29 13:48:22 +03:00
levlam
811f90da2f Add StringBuilder::append_char. 2023-09-29 13:13:56 +03:00
levlam
d2d0a21d10 Update Unicode tables to 15.1. 2023-09-26 14:48:15 +03:00
levlam
6022b2ce77 Improve parameter names. 2023-09-11 15:55:46 +03:00
levlam
40378be487 Delete deprecated JsonObject accessors. 2023-08-18 15:06:16 +03:00
levlam
5c63b80cce Don't send updateChatActiveStories about chats with unknown active stories. 2023-08-16 17:34:36 +03:00
levlam
ed00732cd2 Move vector and pair formatting functions to StringBuilder. 2023-08-10 15:44:47 +03:00
levlam
f64268c50d Don't ignore value returned by json_string_decode. 2023-08-09 13:46:49 +03:00
levlam
572455ea54 Simplify and optimize character printing in format.h. 2023-08-08 17:18:21 +03:00
levlam
7532774bf0 Use append_utf8_character_unsafe in json_string_decode. 2023-08-08 16:33:37 +03:00
levlam
7887bbdb35 Optimize json_string_skip. 2023-08-08 16:26:28 +03:00
levlam
2bc8ec27df Optimize json_string_decode by 30-400%. 2023-08-08 16:14:04 +03:00
levlam
23267aff5d Add one more JSON string decode benchmark. 2023-08-08 16:11:38 +03:00
levlam
b5fbac9643 Add test for json_string_decode. 2023-08-08 16:02:49 +03:00
levlam
c8aa729905 Add json_string_decode benchmark. 2023-08-08 03:13:43 +03:00
levlam
28961b7d0e Add more common.h includes. 2023-08-05 16:09:36 +03:00
levlam
830da27abf Minor improvements. 2023-08-05 15:31:42 +03:00
levlam
b8859da77d Disallow JsonObject copying. 2023-07-31 20:01:02 +03:00
levlam
dd68528ae4 Add JsonObject constructor. 2023-07-31 19:47:55 +03:00
levlam
a7b6f55d7a Add and use JsonObject::foreach. 2023-07-31 19:38:53 +03:00
levlam
a5a408290e Add field getters to JsonObject class. 2023-07-31 16:30:39 +03:00
levlam
44d4fcfa07 Add test for get_json_object_*_field. 2023-07-31 15:54:36 +03:00
levlam
6d05e8af6e Make object const in get_json_object_*_field. 2023-07-31 15:37:54 +03:00
levlam
43941c1e69 Add JsonObject::field_count. 2023-07-31 13:33:35 +03:00
levlam
59044294a8 Make JsonObject class. 2023-07-31 13:31:48 +03:00
levlam
86ecb3db18 Fix compilation error. 2023-07-29 17:55:05 +03:00
levlam
75b0f28d45 Fix GCC compilation error. 2023-07-29 02:41:29 +03:00
levlam
070399c89a Add combine_hashes function. 2023-07-27 19:05:15 +03:00
levlam
b914b28bf0 Use FlatHashMap instead of unordered_map in ChainScheduler. 2023-07-27 14:18:39 +03:00
levlam
d8116aa796 Use FlatHashMap for limited_tasks_ in ChainScheduler. 2023-07-27 14:03:39 +03:00
levlam
aa59e4cbd7 Avoid big memory consumption in ConcurrentHashMap benchmark with n = 1 << 27 when the benchmark ends very fast. 2023-07-26 20:45:52 +03:00
levlam
cfe47b6cc2 Disable MpmcSleepyWaiter_stress_one_one test. 2023-07-26 19:45:10 +03:00
levlam
65710fcec6 Inline zero_encode implementation to speed up it 25% more. 2023-07-26 15:07:15 +03:00
levlam
c50afa3820 Optimize zero_encode. 2023-07-26 14:58:08 +03:00
levlam
69c2315c10 Add zero_encode benchamrk. 2023-07-26 14:40:36 +03:00