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

m:i// on large chunk of text uses up huge amounts of RAM #5548

Closed
p6rt opened this issue Aug 8, 2016 · 5 comments
Closed

m:i// on large chunk of text uses up huge amounts of RAM #5548

p6rt opened this issue Aug 8, 2016 · 5 comments
Labels
perf regex Regular expressions, pattern matching, user-defined grammars, tokens and rules

Comments

@p6rt
Copy link

p6rt commented Aug 8, 2016

Migrated from rt.perl.org#128873 (status was 'resolved')

Searchable as RT128873$

@p6rt
Copy link
Author

p6rt commented Aug 8, 2016

From @zoffixznet

See the attached file or the same file in this gist​: https://gist.github.com/zoffixznet/df3287bcd6baf7e83ad8b6fad16b146e

When run, it consumed 4GB of RAM, before I forcefully killed it.

If the :i flag is removed from m​:i// then the match returns fast and does not consume a lot of RAM.

@p6rt
Copy link
Author

p6rt commented Aug 8, 2016

From @zoffixznet

log.p6

@p6rt
Copy link
Author

p6rt commented Mar 5, 2017

From @MasterDuke17

On Mon, 08 Aug 2016 09​:35​:06 -0700, cpan@​zoffix.com wrote​:

See the attached file or the same file in this gist​:
https://gist.github.com/zoffixznet/df3287bcd6baf7e83ad8b6fad16b146e

When run, it consumed 4GB of RAM, before I forcefully killed it.

If the :i flag is removed from m​:i// then the match returns fast and
does not consume a lot of RAM.

I don't see this behavior now.

This is Rakudo version 2017.02-167-ge114d5204 built on MoarVM version 2017.02-24-gd9e0b4e2

@p6rt
Copy link
Author

p6rt commented Mar 5, 2017

The RT System itself - Status changed from 'new' to 'open'

@p6rt p6rt closed this as completed Mar 5, 2017
@p6rt
Copy link
Author

p6rt commented Mar 5, 2017

@zoffixznet - Status changed from 'open' to 'resolved'

@p6rt p6rt added perf regex Regular expressions, pattern matching, user-defined grammars, tokens and rules labels Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
perf regex Regular expressions, pattern matching, user-defined grammars, tokens and rules
Projects
None yet
Development

No branches or pull requests

1 participant