-
-
Notifications
You must be signed in to change notification settings - Fork 942
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
Browser is endless loading while generating string numeric with big range #2576
Comments
I got something mixed up here: the function I therefore think that nothing can be solved here within the library. I am therefore closing the ticket. |
If you haven't found it yet, |
Even with the "issue" resolved, this sounds like a performance issue for me. Am I wrong with that assumption? |
One |
What is your expectation? |
I was looking for a string representation. But using |
Pre-Checks
Describe the bug
I tried to use
faker.string.numeric({ length: { min: 10000000, max: 99999999 })
but my browser was hanging. I've tested it in Google Chrome 120.0.6099.71 and Microsoft Edge 120.0.2210.61.I guess that this is a performance issue in the used algorithm, so that it doesn't scale well with huge numbers.
Minimal reproduction code
https://stackblitz.com/edit/faker-js-demo-gbihnb?file=index.ts
Additional Context
No response
Environment Info
Which module system do you use?
Used Package Manager
npm
The text was updated successfully, but these errors were encountered: