Skip to content

Speed-up character data loading#19

Merged
Kronuz merged 1 commit intoKronuz:masterfrom
SeaHOH:patch-1
Jan 26, 2022
Merged

Speed-up character data loading#19
Kronuz merged 1 commit intoKronuz:masterfrom
SeaHOH:patch-1

Conversation

@SeaHOH
Copy link
Contributor

@SeaHOH SeaHOH commented Jan 25, 2022

In Python 3, sys.maxunicode is 0x10FFFF, this caused slow loading, and in fact it is not necessary in our code.

And clear some unused data to save memory use.

@SeaHOH
Copy link
Contributor Author

SeaHOH commented Jan 25, 2022

https://github.com/jquery/esprima/blob/512cd66c6ffd6083144b0150f09670e426252776/src/character.ts

Max-unicode in above script is 0xFFDC.

In Python 3, sys.maxunicode is 0x10FFFF, this caused slow loading, and
in fact it is not necessary in our code.

And clear some unused data to save memory use.
@Kronuz Kronuz merged commit 298c7aa into Kronuz:master Jan 26, 2022
@Kronuz
Copy link
Owner

Kronuz commented Jan 26, 2022

Awesome finding! Thank you for working on this.

@SeaHOH
Copy link
Contributor Author

SeaHOH commented Jan 26, 2022

Can you release a new version as soon? I think this is a bit major.

SeaHOH added a commit to SeaHOH/esprima-python that referenced this pull request Feb 5, 2022
xet7 pushed a commit to wekan/wekan that referenced this pull request Oct 25, 2022
Sigh, python-esprima is really not well maintained:
- the maintainer merged Kronuz/esprima-python#19
- this breaks entirely his project
- the submitter of PR 19 submitted a fix one week later
- 10 months later, the fix is still not merged :(

Pull it locally so we get our docs building again.

Fixes: #4731
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants