Commit Graph
6758 Commits
Author SHA1 Message Date
Noah d8a73ead42 Make it unnecessary to import PyClassImpl for #[pymodule] 2020-09-30 11:33:22 -05:00
Jeong YunWon 3b2db89d1e Merge pull request #2245 from RustPython/coolreader18/serde_json-opt
Make serde_json an optional optimization for the json module
2020-09-30 10:49:05 +09:00
Jeong YunWon 48bb335ae6 Merge pull request #2246 from RustPython/coolreader18/notebook-syntax-hl
Add proper syntax highlighting for wasm notebook
2020-09-30 05:31:27 +09:00
Noah b9e102a72d minifix defaultSnippet display in demo 2020-09-29 13:53:37 -05:00
Noah 87e2d0cbcc Add proper syntax highlighting for notebook 2020-09-29 13:53:35 -05:00
Noah 0cdbebeb50 Format with prettier 2020-09-29 13:53:09 -05:00
Noah dd41295390 Merge pull request #2230 from mainsail-org/mir/notebook-with-md
rustpython notebook, add markdown and math support
2020-09-29 11:30:01 -05:00
Noah a950aa6b7f Make serde_json an optional optimization for the json module 2020-09-28 23:45:53 -05:00
Jeong YunWon 31780be2a6 Merge pull request #2244 from RustPython/coolreader18/vm.start_thread
Add vm.start_thread() and related functions
2020-09-29 05:56:57 +09:00
Noah f0318141c0 Add vm.start_thread() and related functions 2020-09-28 00:15:30 -05:00
Noah caa8c10cce Merge pull request #2236 from youknowone/box-str
PyStr internal into Box<str>
2020-09-26 17:58:39 -05:00
Mireille Raad 737b1c064d include woff, woff2 and ttf fonts only for katex/math fonts 2020-09-26 11:00:07 -04:00
Noah c03f0cc354 Merge pull request #2235 from RustPython/coolreader18/tp_getattro
getattro slot
2020-09-25 20:46:38 -05:00
Noah 067b03ae22 Add pystone benchmarks 2020-09-25 19:48:09 -05:00
Noah e5186004d4 Some more getattr related tweaks/optimizations 2020-09-25 19:48:09 -05:00
Noah 3d3889f0df Add a getattro slot 2020-09-25 19:46:42 -05:00
Jeong YunWon 8aa4e00c2a PyStr internal into Box<str> 2020-09-26 09:13:16 +09:00
Jeong YunWon 25409c428b Merge pull request #2216 from youknowone/pytype
PyClass -> PyType
2020-09-26 07:38:06 +09:00
Jeong YunWon 59db19d1ea PyClass -> PyType 2020-09-26 07:32:38 +09:00
Jeong YunWon 0658032eac Merge pull request #2221 from youknowone/tuple-opt
tuple optimization
2020-09-26 06:42:53 +09:00
Noah 2a95f30c15 Merge pull request #2232 from youknowone/slot3
cmp optimization
2020-09-25 13:33:57 -05:00
Jeong YunWon 39856bc500 PyTuple::_new to hide it from public api 2020-09-26 03:08:22 +09:00
Jeong YunWon 07f898e4f0 tuple internal to Box<[PyObjectRef]>
it will use 16bytes instead of 24bytes
2020-09-26 03:02:47 +09:00
Jeong YunWon 9188ff6e95 PyTuple add/mul reuse arguments 2020-09-26 03:01:17 +09:00
Jeong YunWon 3ff89762ec Remove typecheck from objsequence::get_item 2020-09-26 03:01:15 +09:00
Jeong YunWon 98c70d8753 Repalce downcast with from_obj_unchecked for PyContext:::new_* 2020-09-26 02:59:34 +09:00
Jeong YunWon 5c81e7b044 Reuse empty tuple singleton 2020-09-26 02:59:33 +09:00
Jeong YunWon 7f8a74f43a new_unsupported_operand_error take ref 2020-09-26 02:51:51 +09:00
Jeong YunWon 958fe7b194 remove cmp clone 2020-09-26 02:51:50 +09:00
Jeong YunWon e9f99ca080 try_bytes_like 2020-09-26 02:51:14 +09:00
Noah fb23b02bf9 Merge pull request #2234 from RustPython/coolreader18/dict-optimization
Make dict repr more efficient (50% faster!)
2020-09-25 12:47:54 -05:00
Jeong YunWon d1e111d963 Merge pull request #2215 from youknowone/rename-str-types
Rename str types
2020-09-26 01:55:30 +09:00
Jeong YunWon 651799cefc PyCommonString -> AnyStr 2020-09-26 00:25:13 +09:00
Jeong YunWon f81ad04ce3 PyString -> PyStr 2020-09-26 00:20:02 +09:00
Noah 131736eecf Make setdefault atomic 2020-09-24 23:51:33 -05:00
Noah b835321664 Don't grow dict size as quickly 2020-09-24 23:21:43 -05:00
Noah 7c2856d449 Make dict repr more efficient 2020-09-24 22:26:31 -05:00
Jeong YunWon c5011038e0 Merge pull request #2233 from youknowone/iomodule
_io uses pymodule
2020-09-25 11:55:52 +09:00
Jeong YunWon c9a890dd4f _io uses #[pyimpl(with(PyRef))] 2020-09-25 02:50:15 +09:00
Jeong YunWon 1f309322d7 Allow #[pyimpl(with(PyRef))] 2020-09-25 02:46:07 +09:00
Jeong YunWon 1a168b9803 class pyattr for _io._IOBase 2020-09-25 02:28:07 +09:00
Jeong YunWon f29c158748 pyattr for pyclass 2020-09-25 02:27:54 +09:00
Jeong YunWon 874b5e5568 iter_use_idents for ident traversal 2020-09-25 02:12:12 +09:00
Jeong YunWon bf1d3bb719 _io uses pymodule 2020-09-25 01:41:40 +09:00
Jeong YunWon 01e974eadc Merge pull request #2231 from youknowone/slot2
slot optimization 2
2020-09-24 22:20:27 +09:00
Jeong YunWon bebfa4b4f1 tp_cmp always exists 2020-09-24 07:50:11 +09:00
Jeong YunWon c76126f951 tp_cmp optimization 2020-09-24 07:50:11 +09:00
Jeong YunWon 991b968294 tp_call prevent clone 2020-09-24 07:50:11 +09:00
Jeong YunWon d9b1ae296b tp_del 2020-09-24 07:50:11 +09:00
Jeong YunWon 9e71cb3bcc Merge pull request #2223 from youknowone/call
slot optimization to skip attributes dict lookup
2020-09-24 07:48:56 +09:00