-
Notifications
You must be signed in to change notification settings - Fork 222
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
fix: patterns impose resource limits #6057
Merged
Merged
Conversation
This file contains 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
erights
force-pushed
the
markm-size-limits-take2
branch
from
August 26, 2022 08:55
3363055
to
4140eb3
Compare
Closed
erights
force-pushed
the
markm-far-classes
branch
from
August 26, 2022 20:00
3120559
to
3d1a71a
Compare
erights
force-pushed
the
markm-size-limits-take2
branch
from
August 26, 2022 20:01
fd3ca19
to
e0ff2a1
Compare
erights
force-pushed
the
markm-far-classes
branch
2 times, most recently
from
August 27, 2022 03:12
1e96f9b
to
e582783
Compare
erights
force-pushed
the
markm-size-limits-take2
branch
from
August 27, 2022 03:14
e0ff2a1
to
92a155b
Compare
erights
force-pushed
the
markm-far-classes
branch
from
August 27, 2022 17:57
e582783
to
8e2df6b
Compare
erights
force-pushed
the
markm-size-limits-take2
branch
from
August 27, 2022 17:59
f045839
to
a55f1c6
Compare
erights
force-pushed
the
markm-far-classes
branch
from
August 27, 2022 18:04
8e2df6b
to
060b06c
Compare
erights
force-pushed
the
markm-size-limits-take2
branch
from
August 27, 2022 18:05
a55f1c6
to
b089acc
Compare
erights
force-pushed
the
markm-far-classes
branch
from
August 27, 2022 20:10
060b06c
to
2dafd4d
Compare
erights
force-pushed
the
markm-size-limits-take2
branch
from
August 27, 2022 20:11
ba76966
to
a3aa179
Compare
erights
force-pushed
the
markm-far-classes
branch
from
August 28, 2022 19:30
2dafd4d
to
fcc3bb4
Compare
erights
force-pushed
the
markm-size-limits-take2
branch
from
August 28, 2022 19:51
d1b67fe
to
1aae385
Compare
erights
force-pushed
the
markm-far-classes
branch
from
August 28, 2022 20:01
fcc3bb4
to
e1a5527
Compare
erights
force-pushed
the
markm-size-limits-take2
branch
from
August 28, 2022 20:02
508e115
to
0af2e04
Compare
erights
force-pushed
the
markm-far-classes
branch
from
August 28, 2022 20:07
e1a5527
to
59c3cd8
Compare
erights
force-pushed
the
markm-size-limits-take2
branch
4 times, most recently
from
August 29, 2022 01:38
8b8a988
to
28d59b2
Compare
erights
force-pushed
the
markm-far-classes
branch
from
August 29, 2022 01:46
195a02e
to
5f94c72
Compare
erights
force-pushed
the
markm-size-limits-take2
branch
from
September 1, 2022 04:06
e1e99b9
to
ec3fba8
Compare
erights
force-pushed
the
markm-far-classes
branch
from
September 1, 2022 18:42
46b6406
to
171448a
Compare
erights
force-pushed
the
markm-size-limits-take2
branch
from
September 1, 2022 18:43
ec3fba8
to
c14117a
Compare
erights
force-pushed
the
markm-far-classes
branch
from
September 2, 2022 21:59
171448a
to
12dfbe1
Compare
erights
force-pushed
the
markm-size-limits-take2
branch
from
September 2, 2022 22:01
c14117a
to
d3c9e75
Compare
erights
force-pushed
the
markm-far-classes
branch
from
September 3, 2022 21:46
12dfbe1
to
ef286d1
Compare
erights
force-pushed
the
markm-size-limits-take2
branch
from
September 3, 2022 22:16
d3c9e75
to
8e36789
Compare
erights
force-pushed
the
markm-size-limits-take2
branch
2 times, most recently
from
September 4, 2022 06:40
18ce081
to
ec00bae
Compare
erights
changed the title
WIP: patterns impose resource limits
fix: patterns impose resource limits
Sep 4, 2022
erights
force-pushed
the
markm-size-limits-take2
branch
from
September 4, 2022 19:38
494e890
to
e4357ce
Compare
erights
commented
Sep 4, 2022
This is now ready for review! |
2 tasks
dtribble
approved these changes
Sep 6, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Several comments about perf improvements and test improvements. I could not spot any issues.
Oh and some questions and suggestions around the initial values.
erights
force-pushed
the
markm-size-limits-take2
branch
from
September 6, 2022 03:30
e4357ce
to
d60d792
Compare
erights
force-pushed
the
markm-size-limits-take2
branch
from
September 6, 2022 21:38
24c30d4
to
68efd20
Compare
This was referenced Sep 7, 2022
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.
For various type-oriented patterns like
M.array()
, where the pattern itself does not naturally imply a length limit,limits
argument to the pattern, where the limits argument is a record of optional named limitslimits
are provided.The limits are expressed as numbers, not bigints. Unlimited size can thus still be expressed with a limit value of
Infinity
.The limits are
*
decimalDigitsLimit
, forM.bigint
,M.nat
, and the cardinality ofM.bag
andM.bagOf
*
stringLengthLimit
, forM.string
*
symbolNameLengthLimit
, forM.symbol
*
numPropertiesLimit
, forM.record
andM.recordOf
*
propertyNameLengthLimit
, forM.record
andM.recordOf
*
arrayLengthLimit
, forM.array
andM.arrayOf
*
numSetElementsLimit
, forM.set
andM.setOf
*
numUniqueBagElementsLimit:
, forM.bag
andM.bagOf
*
numMapEntriesLimit
, forM.map
andM.mapOf
See
#5955 (fixes it?)
#5956
#5954
#6098
#6060
#6061
#6062
#5956