-
Notifications
You must be signed in to change notification settings - Fork 121
Test Large input 2gb #603
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
Merged
Merged
Test Large input 2gb #603
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The input is generated by a custom Reader.
…er that repeats the given content, to reduce iterations when we read a large amount of data.
We actually need a lot of RAM to make this test pass.
> By default a container is given 2 CPUs and 4 GB of memory but it can be configured in .cirrus.yml https://cirrus-ci.org/guide/linux/
We don't need to match the full content. Only have a large input.
Merged
regisd
added a commit
that referenced
this pull request
Nov 26, 2019
* Replace `yychar` by long in skeletons (default & nested) * Update example for long yyChar * Also, add some positivity assertion in `example/simple/Yytoken` to give some defensive programming as an example. * Update manual and READMe * Update test added in #603 . * Improve doc of RepeatContentReader * Improve RepeatContentReader Don't prepare a large buffer if we read only a few characters. * Also update testcase/example/simple for long `yychar`. * Delete testcase/simple which is just redundant with the example.
regisd
pushed a commit
that referenced
this pull request
Nov 26, 2019
Author: Régis Décamps <[email protected]> Date: Wed Nov 27 00:02:51 2019 +0100 Make `yychar` long (#605) * Replace `yychar` by long in skeletons (default & nested) * Update example for long yyChar * Also, add some positivity assertion in `example/simple/Yytoken` to give some defensive programming as an example. * Update manual and READMe * Update test added in #603 . * Improve doc of RepeatContentReader * Improve RepeatContentReader Don't prepare a large buffer if we read only a few characters. * Also update testcase/example/simple for long `yychar`. * Delete testcase/simple which is just redundant with the example. Updated from target/jflex-parent-1.8.0-SNAPSHOT-sources.jar
regisd
added a commit
to regisd/jflex
that referenced
this pull request
Dec 3, 2019
Introduce a fakeRead() that changes `yychar` so that we can fakely jump to yychar just before Integer.MAX_VALUE and make the test run in a snap. Follow-up of jflex-de#603 and jflex-de#605
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Test that reproduces #536 (cannot process files of 2GB).
This test is based on a custom reader that generates content of any size.