Skip to main content

Faster-readmdict

Use Cython to speed up readmdict.py

Original edition:

❯ time python -m readmdict ./concise-enhanced.mdx
======== b'./concise-enhanced.mdx' ========
  Number of Entries : 3402564
  GeneratedByEngineVersion : 2.0
  RequiredEngineVersion : 2.0
  Format : Html
  KeyCaseSensitive : No
  StripKey : Yes
  Encrypted : 2
  Description : <font size=5 color=red>简明英汉字典增强版:20170605<br>
(数据:http://github.com/skywind3000/ECDICT)<br>
 1. 开源英汉字典:MIT / CC 双协议<br>
 2. 标注牛津三千关键词:音标后 K字符<br>
 3. 柯林斯星级词汇标注:音标后 1-5的数字<br>
 4. 标注 COCA/BNC 的词频顺序<br>
 5. 标注考试大纲信息:中高研四六托雅 等<br>
</font>
  Title : 简明英汉字典增强版 - CSS
  Encoding : UTF-8
  CreationDate : 2017-6-4
  Compact : No
  Compat : No
  Left2Right : Yes
  DataSourceFormat : 107
  StyleSheet :
python -m readmdict ./concise-enhanced.mdx  4.99s user 0.28s system 99% cpu 5.275 total

Ours:

❯ time python ./readmdict/__main__.py ../ecdict-mdx-style-28/concise-enhanced.mdx
======== b'../ecdict-mdx-style-28/concise-enhanced.mdx' ========
  Number of Entries : 3402564
  GeneratedByEngineVersion : 2.0
  RequiredEngineVersion : 2.0
  Format : Html
  KeyCaseSensitive : No
  StripKey : Yes
  Encrypted : 2
  Description : <font size=5 color=red>简明英汉字典增强版:20170605<br>
(数据:http://github.com/skywind3000/ECDICT)<br>
 1. 开源英汉字典:MIT / CC 双协议<br>
 2. 标注牛津三千关键词:音标后 K字符<br>
 3. 柯林斯星级词汇标注:音标后 1-5的数字<br>
 4. 标注 COCA/BNC 的词频顺序<br>
 5. 标注考试大纲信息:中高研四六托雅 等<br>
</font>
  Title : 简明英汉字典增强版 - CSS
  Encoding : UTF-8
  CreationDate : 2017-6-4
  Compact : No
  Compat : No
  Left2Right : Yes
  DataSourceFormat : 107
  StyleSheet :
python ./readmdict/__main__.py ../ecdict-mdx-style-28/concise-enhanced.mdx  3.32s user 0.29s system 99% cpu 3.608 total

Metadata

Release files for faster-readmdict 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for faster-readmdict 0.1.4
File Size Uploaded
faster_readmdict-0.1.4.tar.gz 16.3 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for faster-readmdict 0.1.4
File Interpreter ABI Platform
faster_readmdict-0.1.4-cp312-cp312-macosx_14_0_arm64.whl CPython 3.12 CPython 3.12 macOS 14.0+ ARM64 Details
faster_readmdict-0.1.4-cp310-cp310-manylinux_2_35_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.35+ x86-64 Details
faster_readmdict-0.1.4-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details

Total release size: 679.2 kB

Release files / faster_readmdict-0.1.4.tar.gz

Download URL faster_readmdict-0.1.4.tar.gz
Size 16.3 kB
Tags Source
SHA-256 checksum
How to use checksums
7574a02478a204e03c41b57bb10d168675a73183eb3dd71f7e9c700d44e7cad1
BLAKE2b-256 checksum
How to use checksums
464d6c6d4d6a4139c530c088756e07bd8d13dbb4b444afbfafffac87839d00cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.4 Darwin/23.5.0

Release files / faster_readmdict-0.1.4-cp312-cp312-macosx_14_0_arm64.whl

Download URL faster_readmdict-0.1.4-cp312-cp312-macosx_14_0_arm64.whl
Size 103.4 kB
Tags CPython 3.12 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
bc7e440beb2420a086f3256b133c4f46dfbf3f66b61fe8e7995e1f0c84e00d7f
BLAKE2b-256 checksum
How to use checksums
b007ee4e27a2a374c541a4275438797d58215d64de4a299123e7ec6d725d9383
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.4 Darwin/23.5.0

Release files / faster_readmdict-0.1.4-cp310-cp310-manylinux_2_35_x86_64.whl

Download URL faster_readmdict-0.1.4-cp310-cp310-manylinux_2_35_x86_64.whl
Size 461.8 kB
Tags CPython 3.10 Linux glibc 2.35+ x86-64
SHA-256 checksum
How to use checksums
3781693b2bfb5f7e9fc5ddae7938c0222e623ea3e6105e4038807e4552a98013
BLAKE2b-256 checksum
How to use checksums
dcf10413f5191a8c312a744a1754854125659fb471985cf06fd3c5afa87041da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-1022-azure

Release files / faster_readmdict-0.1.4-cp39-cp39-win_amd64.whl

Download URL faster_readmdict-0.1.4-cp39-cp39-win_amd64.whl
Size 97.7 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
9d88d6b4ee201cc362f587693763b48f8a02f94340f939892e3e5a924d7b1264
BLAKE2b-256 checksum
How to use checksums
570147d4a9f7e0ffba4d5b5c464df913dfd0f809bd58880f2a9b9884ea5f8980
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.9.13 Windows/10

Release history Release notifications | RSS feed

This release

0.1.4 This release

4 release files

0.1.3

4 release files

0.1.2

1 release file

0.1.1

4 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page