Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encoding a sentence takes too long (> 5 min) #3

Closed
mochja opened this issue Dec 29, 2016 · 0 comments
Closed

Encoding a sentence takes too long (> 5 min) #3

mochja opened this issue Dec 29, 2016 · 0 comments

Comments

@mochja
Copy link

mochja commented Dec 29, 2016

Encoding a simple sentence takes crazy amount of cpu time.

Try to run code below

neon.encode("Sed tempus eu tortor sagittis commodo. Phasellus luctus pharetra lectus, at vulputate ex.");

It's due to this regex:

/^(?:[^\x00-\x20#"',:=[\]{}()!`-]|[:-][^"',\]})\s])(?:[^\x00-\x20,:=\]})(]+|:(?![\s,\]})]|$)|[\ \t]+[^\x00-\x20#,:=\]})(])*$/
@mochja mochja changed the title Encoding a sentence takes too long (> 1 min) Encoding a sentence takes too long (> 5 min) Dec 29, 2016
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

No branches or pull requests

1 participant