-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(limit): refactor limit to use NarrowStateTransformation (#4514)
* chore: modernize limit tests The tests were written in the old style. Updating to use the `testcase` keyword so I can run it through the debugger in isolation. * perf(limit): refactor limit to use NarrowStateTransformation * chore: add feature flag for NarrowTransformation limit * chore: make fmt * refactor: NewNarrowLimitTransformation is public (to share with tests) * test: run standard limit tests against narrow and initial impls * fix: empty table case was failing due to bad offset vs chunk len check * fix: make sure tests have distinct names * chore: make generate * test: dupe TestProcess_Limit_MultiBuffer for narrow version (fails) * fix: draw down `state.n` with each iteration, reset the offset This change fixes the MultiBuffer test. * refactor: more explicit empty input handling Previously the chunk length check was double-duty, happening as part of state management. Not sure that was even correct, and could have introduced a bug for certain cases. This moves the "empty" check to where we initialize the transformation state, and short-circuits. * chore: favor tr (not xform) for consistency * chore: rephrase * chore: modernize tickscript flux tests * chore: make generate * fix: fixup offset handling * refactor: handle 0 len chunk and n=0 cases in same block * chore: enable feature flag for fluxtest
- Loading branch information
Owen Nelson
authored
Mar 3, 2022
1 parent
0f0c88f
commit 59e6485
Showing
14 changed files
with
474 additions
and
20,764 deletions.
There are no files selected for viewing
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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
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
Oops, something went wrong.