Commit Graph

191 Commits

Author SHA1 Message Date
Stephen Chung
4100e6da64 Use ImmutableString for source. 2022-10-29 14:12:18 +08:00
Stephen Chung
25fde7dbed Fix tests. 2022-10-27 22:08:47 +08:00
Stephen Chung
4100645512 Move pure checking out of functions. 2022-10-27 20:42:10 +08:00
Stephen Chung
4708fde8bd Compact data structures. 2022-10-27 15:52:24 +08:00
Stephen Chung
3c2e031883 Use variable interpolation for println!. 2022-10-27 13:38:21 +08:00
Stephen Chung
05b9c83bb8 Reformat. 2022-10-24 23:33:33 +08:00
Stephen Chung
c24794187f Reduce unnecessary generics. 2022-10-20 15:31:57 +08:00
Stephen Chung
988222418e Check data size at built-in. 2022-10-20 11:38:54 +08:00
Stephen Chung
ac05f0a0a8 Check if function calls cannot be scripted. 2022-10-14 18:31:40 +08:00
Stephen Chung
ea63c66cf0 Add call_native_fn for context. 2022-10-14 16:57:14 +08:00
Stephen Chung
71e475be13 Fix no_module build. 2022-10-14 15:23:58 +08:00
Stephen Chung
3d0626c76f Streamline global state. 2022-10-14 12:23:04 +08:00
Stephen Chung
31d045279f Fix imports in eval. 2022-10-14 11:57:36 +08:00
Stephen Chung
d6b0f99781 Refactor. 2022-10-10 16:46:35 +08:00
Stephen Chung
42c0eeed57 Remove unnecessary unchecked gates. 2022-10-05 15:07:54 +08:00
Stephen Chung
891214470b Make limit getters available without unchecked. 2022-10-04 15:33:51 +08:00
Stephen Chung
6c777e68d3 Refine inlining. 2022-09-28 12:06:22 +08:00
Stephen Chung
b141e8d0e1 Do not use stable hashing with all-zero seed. 2022-09-27 16:39:19 +08:00
Stephen Chung
2ecf44a48e Remove stable_hash feature and use environment variable. 2022-09-27 13:23:47 +08:00
Stephen Chung
25476d1cea Mark debug functions cold. 2022-09-27 08:52:39 +08:00
Stephen Chung
20d4b71591 Add stable_hash. 2022-09-26 23:45:50 +08:00
Stephen Chung
3a3653f42a Refactor. 2022-09-26 23:35:37 +08:00
Stephen Chung
bf02d040e2 Use tokens to speed up function name lookup. 2022-09-25 23:03:18 +08:00
Stephen Chung
ece522ce2f Refactor fast operators. 2022-09-25 18:22:48 +08:00
Stephen Chung
6eef11123a Do not search for global functions if scripted. 2022-09-21 18:30:12 +08:00
Stephen Chung
5d275b5307 Simplify to calc_fn_hash. 2022-09-21 11:46:23 +08:00
Stephen Chung
c727b529f5 Minor refactors. 2022-09-15 08:55:07 +08:00
Stephen Chung
396ec7df8a Add #[cold] tags. 2022-09-13 22:54:13 +08:00
Stephen Chung
40a12b2b7d Remove key type from StraightHashMap. 2022-09-12 23:08:38 +08:00
Stephen Chung
08f6682d09 Use is_absent_and_set. 2022-09-12 22:40:52 +08:00
Stephen Chung
44219c732c Do not cache "one-hit wonders" 2022-09-12 19:47:29 +08:00
Stephen Chung
1bfedf516d Use a bloom filter. 2022-09-08 17:49:37 +08:00
Stephen Chung
faa81ac3fc Fix no-std build. 2022-09-07 14:37:33 +08:00
Stephen Chung
b0ce3ee445 Use Entry API. 2022-09-07 13:30:31 +08:00
Stephen Chung
a6ce459b32 Merge branch 'main' of https://github.com/rhaiscript/rhai 2022-09-06 17:41:47 +08:00
quake
8ee501e4d9 pref: remove Rc/Arc::from_box 2022-09-06 14:51:32 +09:00
quake
563f18a04b pref: use ExactSizeIterator 2022-09-06 14:16:15 +09:00
Stephen Chung
158b4ce7bc Change TypeId to use BTreeMap. 2022-09-05 21:17:07 +08:00
quake
d515eaf7cd chore: apply reviewers comment 2022-09-05 19:22:30 +09:00
quake
239438754c perf: change BTreeMap to StraightHashMap 2022-09-05 13:13:06 +09:00
Stephen Chung
c7da3c6edb Speed up unary operators. 2022-09-04 18:12:38 +08:00
Stephen Chung
702bb9030a Make fast operators the default. 2022-09-03 22:07:36 +08:00
Stephen Chung
43c4d7e3ca Use standard operator to short-circuit. 2022-09-03 12:35:00 +08:00
Stephen Chung
79eb626386 Speed up built-in. 2022-09-03 11:46:20 +08:00
Stephen Chung
fcdd2eb143 Use caching for fast operators. 2022-09-03 11:27:13 +08:00
Stephen Chung
80772df4f4 Shut up clippy. 2022-08-29 14:27:05 +08:00
Stephen Chung
bf5d6ab35a Shut up clippy. 2022-08-27 16:26:41 +08:00
Stephen Chung
204284f4f7 Add test to recreate NativeCallContext. 2022-08-26 16:20:23 +08:00
Stephen Chung
69bb5534ef Share encapsulated environment. 2022-08-24 20:59:11 +08:00
Stephen Chung
b40ca9e40d Improve docs. 2022-08-24 18:27:58 +08:00