blueloveTH
e7e8b9141e
Update CMakeLists.txt
2024-06-14 19:08:53 +08:00
BLUELOVETH
444434efb6
Merge pull request #271 from szdytom/make-dict-c11
...
Make `Dict` and `DictIter` c11
2024-06-14 14:53:10 +08:00
blueloveTH
0770c97f60
add benchmark for dict
2024-06-14 14:01:25 +08:00
blueloveTH
b236031554
add benchmark
2024-06-14 13:57:12 +08:00
blueloveTH
00a5b4d5d3
Merge branch 'v2.0-c11' into pr/271
2024-06-14 13:38:40 +08:00
33b110589d
add test for dict larger than 65536
2024-06-14 13:35:32 +08:00
6649a5b987
never shrink
2024-06-14 13:13:24 +08:00
5e38f7debd
remove asserts with side effect
2024-06-14 12:36:47 +08:00
6220ab029b
stop using unsigned for indecies
2024-06-14 12:35:31 +08:00
681b9d7dd0
fix...and remove assert with side effect
2024-06-14 12:30:24 +08:00
7549f1b95a
better dict clear
2024-06-14 12:28:55 +08:00
a8ca70ca74
more replace
2024-06-14 12:24:22 +08:00
d1763bdef1
replace reinterpret_cast with C-style cast
2024-06-14 12:21:20 +08:00
6d938d30bf
make hash functions macros
2024-06-14 12:19:16 +08:00
784980af93
add marco PK_DICT_COMPACT_MODE
2024-06-14 12:09:46 +08:00
a47b52f086
optimize hashtable access
2024-06-14 12:04:39 +08:00
ed2e95b3f4
fix overflow
2024-06-14 11:10:08 +08:00
9390b0d638
use marcos to control load factor
2024-06-14 11:08:34 +08:00
21fdaeaa21
fix dict compare
2024-06-14 11:06:39 +08:00
6e780173f9
remove _version
2024-06-14 09:32:58 +08:00
3d90bd0392
change cmake back
2024-06-14 00:27:03 +01:00
d25afcaeae
remove hash from entry
2024-06-14 00:27:03 +01:00
637aedabc5
Use 4 byte hash only
2024-06-14 00:27:03 +01:00
c047eafa7e
optimize probe0 for less __eq__ and hash compare
2024-06-14 00:27:03 +01:00
5e6226729a
skip nullptr in probe1
2024-06-14 00:27:03 +01:00
41562cf4c3
fix find and insert
2024-06-14 00:27:03 +01:00
f28b2f152e
Fix
2024-06-14 00:27:03 +01:00
8458e49a30
Minimum deleted slot required to refactor
2024-06-14 00:27:03 +01:00
blueloveTH
3d72ca0cc6
remove any
2024-06-13 21:37:33 +08:00
blueloveTH
6167cb4a43
add PK_INLINE
2024-06-13 20:13:20 +08:00
b2d5708fd8
fix
2024-06-13 17:03:16 +08:00
e455e36a39
fix iteration and count
2024-06-13 16:44:41 +08:00
73c9c5a228
fix RE
2024-06-13 16:26:06 +08:00
f4e9293643
...
2024-06-13 08:50:10 +01:00
249656039a
fix uninitialize
2024-06-13 08:50:10 +01:00
d871d91adb
Impl Dict and DictIter in c11
2024-06-13 08:50:10 +01:00
blueloveTH
59537c9bd0
fix msvc
2024-06-13 14:58:23 +08:00
blueloveTH
ead9d93f5b
fix msvc
2024-06-13 14:48:37 +08:00
blueloveTH
9b72ae7223
fix msvc
2024-06-13 14:41:46 +08:00
blueloveTH
ca4ebf4ba7
some fix
2024-06-13 14:40:04 +08:00
blueloveTH
e1c706b08f
some fix
2024-06-13 14:26:51 +08:00
blueloveTH
deec5edff9
some fix
2024-06-13 14:20:51 +08:00
blueloveTH
f0d82a19ee
complete sstream
2024-06-13 13:22:29 +08:00
blueloveTH
0811f23b71
some more move
2024-06-13 13:08:19 +08:00
blueloveTH
9d6f044d33
Squashed commit of the following:
...
commit b584de5c3d4603a476cdd60830289104784a4942
Author: blueloveTH <blueloveth@foxmail.com>
Date: Thu Jun 13 10:46:07 2024 +0800
some fix
commit 1fe8a3280949d724ddab9c6b1476e1b55c5beb9d
Author: blueloveTH <blueloveth@foxmail.com>
Date: Wed Jun 12 22:08:09 2024 +0800
backup
2024-06-13 10:46:22 +08:00
bcf51c4535
Add the missing destructor for SourceData
C++ binding ( #267 )
2024-06-12 11:29:38 +08:00
blueloveTH
3ae90fe9b1
some fix
2024-06-12 01:31:34 +08:00
031f189a4a
Make SourceData and SStream c11 ( #266 )
...
* Make SourceData c11
* make it compile
* add a marco
* follow up rename of c11_vetor__push
* remove isascii marco
* fix empty function name handling
* change enum back
* Remove trival accessor
* make pkpy_Str__take_buf hidden
* make it compile
* remove rcptr and use shared_ptr instead
* change enum name in C++ code back
* fix type problem
* remove strdup polyfill
* remove xmake
* ...
2024-06-11 20:28:51 +08:00
blueloveTH
2291ae5af3
fix CI
2024-06-11 13:41:38 +08:00
blueloveTH
1c9bd1836c
some fix
2024-06-11 13:39:41 +08:00