Commit Graph
121 Commits
Author SHA1 Message Date
MihailRis bc7be5ecc8 Merge branch 'main' into blocks-metadata 2024-10-01 23:29:07 +03:00
MihailRis a65cf6ed66 add ThreadPool maxWorkers constructor argument 2024-10-01 23:24:01 +03:00
MihailRis 99e8764907 fix setAscii, setUnicode 2024-10-01 22:06:57 +03:00
MihailRis bc05716772 implement blocks data conversion 2024-10-01 19:08:45 +03:00
MihailRis 28d746f371 implement blocks data saving/loading 2024-09-30 23:42:16 +03:00
MihailRis 28b6ec2a0e Merge branch 'main' into blocks-metadata 2024-09-19 14:51:47 +03:00
MihailRis f05ed4942d add util::Buffer copy constructor 2024-09-16 21:31:37 +03:00
MihailRis f5d2a1f1b7 make StructLayout serializable 2024-09-14 18:56:37 +03:00
MihailRis 8447cf5ad5 Merge branch 'main' into blocks-metadata 2024-09-13 13:22:27 +03:00
MihailRis f8fadf8b74 add json BJSON_TYPE_BYTES support 2024-09-12 17:22:00 +03:00
MihailRis 8b947fe78e add util::Buffer template 2024-09-12 13:43:08 +03:00
MihailRis 73a8343f61 add extRLE16 encoder/decoder 2024-09-04 23:27:52 +03:00
MihailRis 0b3bb36188 update byte_utils 2024-09-04 15:41:51 +03:00
MihailRis c15abfa715 add util::Buffer, rle::encode16, rle::decode16 2024-09-03 23:33:29 +03:00
MihailRis 7d193941a4 add /coders/compression module 2024-09-01 21:58:33 +03:00
MihailRis bcd6f40ddb rename StructMapping to StructLayout 2024-08-29 18:56:26 +03:00
MihailRis d0bc679815 update SmallHeap docs 2024-08-29 17:07:08 +03:00
MihailRis 96941cb707 fix utf-8 decoder & add u32string functions 2024-08-29 15:40:51 +03:00
MihailRis f8d0a4f4c7 add util::crop_utf8 (stringutil) 2024-08-29 15:39:14 +03:00
MihailRis 4343e81e00 fix utf-8 decoder & add u32string functions 2024-08-29 15:09:27 +03:00
MihailRis 25bdcc8e1b add util::crop_utf8 (stringutil) 2024-08-29 13:01:32 +03:00
MihailRis 2b1db0b075 fix 2024-08-29 11:51:33 +03:00
MihailRis 9b87071f24 add byteorder-related functions to data_io.hpp 2024-08-29 11:37:05 +03:00
MihailRis cf99996b24 add util::SmallHeap 2024-08-12 22:07:25 +03:00
MihailRis de5c75d782 replace include guards with pragma once 2024-08-10 01:57:59 +03:00
MihailRis f43cc93cd2 update project includes format 2024-08-10 01:37:48 +03:00
alexei-zebra 91ad9cc64c add compatibility with other files 2024-08-06 15:51:55 +03:00
InfiniteCoder eb6bb19dc6 interfaces/ 2024-08-06 00:04:32 +03:00
InfiniteCoder 5c9bc83bbd items/ + objects/ + util/ 2024-08-04 22:26:08 +03:00
InfiniteCoder 3aa0298c85 files/ 2024-08-04 17:08:11 +03:00
InfiniteCoder e6da3638f0 Logger.hpp 2024-08-04 12:46:03 +03:00
InfiniteCoder d5dc68dd38 Root includes 2024-08-04 10:24:11 +03:00
Vyacheslav Ivanov 4efa574eec fix: PVS-Studio V508 mark false
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 21:05:19 +03:00
Vyacheslav Ivanov bbf33e8e4d format: reformat project
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 19:53:48 +03:00
Vyacheslav IvanovandMihailRis 8c5e5559ec fix: optimization: PVS-Studio warning V831
Replaced 'at()' method with 'operator[]' to improve performance.

The 'at()' method performs bounds checking, which can introduce overhead. Using 'operator[]' bypasses this check and can improve performance when you are certain that the index is within bounds.

Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 17:46:29 +03:00
Vyacheslav IvanovandMihailRis aecd0f5db9 fix: optimization: PVS-Studio warning V832
It's better to use '= default;' syntax instead of empty constructor and destructor body.
Using '= default;' can help the compiler generate more optimal code.

Reported by: PVS-Studio

Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 17:44:10 +03:00
Vyacheslav IvanovandMihailRis 52905ff27b fix: optimization: PVS-Studio warning V802
Rearranged structure fields in decreasing order of size to reduce structure size from 32 to 24 and 12 to 8 bytes on 64-bit platforms.

Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 17:42:06 +03:00
MihailRisandGitHub ba046a52c0 Revert "fix: optimization: Various PVS-Studio warnings" 2024-08-02 14:51:44 +03:00
Vyacheslav Ivanov c3e4341a04 fix: optimization: PVS-Studio warning V802
Rearranged structure fields in decreasing order of size to reduce structure size from 32 to 24 and 12 to 8 bytes on 64-bit platforms.

Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-02 06:12:30 +03:00
Vyacheslav Ivanov 2c1103307f fix: optimization: PVS-Studio warning V813
Passing large objects by const reference avoids unnecessary copying and enhances efficiency.

Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-02 05:35:55 +03:00
Vyacheslav Ivanov f3f872c7a3 fix: optimization: PVS-Studio warning V831
Replaced 'at()' method with 'operator[]' to improve performance.

The 'at()' method performs bounds checking, which can introduce overhead. Using 'operator[]' bypasses this check and can improve performance when you are certain that the index is within bounds.

Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-02 02:38:54 +03:00
Vyacheslav Ivanov 5dd7a15c09 fix: optimization: PVS-Studio warning V832
It's better to use '= default;' syntax instead of empty constructor and destructor body.
Using '= default;' can help the compiler generate more optimal code.

Reported by: PVS-Studio

Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-02 01:57:43 +03:00
MihailRis 71e20ff805 add block 'ambient-occlusion' property 2024-07-27 18:37:18 +03:00
MihailRis eedce588b1 move class Clock to a separate unit 2024-07-19 20:49:04 +03:00
Pugemon e98fb9a1a7 Optimize container insertions using emplace_back instead of push_back 2024-06-07 04:43:27 +03:00
Pugemon f25a425cb9 Optimize parameter passing to avoid unnecessary copying 2024-06-07 04:00:38 +03:00
MihailRis c94d40ab02 toml parser update + 'toml' module is built-in now 2024-05-20 01:28:42 +03:00
MihailRis 8ee493dbda Merge branch 'main' into devtools 2024-05-17 15:47:25 +03:00
MihailRis 8ff629e1cd minor refactor 2024-05-17 15:46:54 +03:00
MihailRis c63d350ad5 Merge branch 'main' into devtools 2024-05-12 11:00:42 +03:00