Skip to content

Minor code improvements - #4710

Closed
vasslitvinov wants to merge 28 commits into
Bears-R-Us:masterfrom
vasslitvinov:checkpoint-GeneratorSymEntry
Closed

vasslitvinov wants to merge 28 commits into
Bears-R-Us:masterfrom
vasslitvinov:checkpoint-GeneratorSymEntry

Conversation

@vasslitvinov

@vasslitvinov vasslitvinov commented Jul 11, 2025 •

Copy link
Copy Markdown
Contributor

This PR initially added checkpointing of GeneratorSymEntry. However during testing I realized that, while checkpointing per se works, restoring from a checkpoint does not "roll back" Arkouda properly. This is because part of the Generator state, specifically its state field, is stored in the client and not on the server. Therefore I am backing out this checkpointing addition.

See #4709 for discussion on this.

This PR now contains minor code cleanups that I did while working on GeneratorSymEntry checkpointing.

User-facing: adds ak.get_registration_config(); populates a Generator in the client with GeneratorSymEntry instances on the server only for those types that are requested in registration-config.json.

…#4734)

This PR removes references to `master` branch and replaces them with
`main` throughout the project.


Closes Bears-R-Us#4733:  Switch branch from master to main

Co-authored-by: ajpotts <[email protected]>
@vasslitvinov
vasslitvinov force-pushed the checkpoint-GeneratorSymEntry branch from 97de2ff to 3ae0b3e Compare July 25, 2025 02:03
ajpotts and others added 26 commits July 25, 2025 07:38
)

Adds a `doctest` unit test for the `dataframe` module.

Closes Bears-R-Us#4254:  add doctest to dataframe module

Co-authored-by: ajpotts <[email protected]>
…ears-R-Us#4730)

Sets a longer timeout for `test_multi_col_merge` when running with ASAN
to ensure the test actually finishes

Signed-off-by: Jade Abraham <[email protected]>
…dule (Bears-R-Us#4490)

Adds `doctest` unit test for the `array_api/utility_functions` module.


Closes Bears-R-Us#4306:  add doctest to array_api/utility_functions module

Co-authored-by: ajpotts <[email protected]>
Adds `doctest` unit tests for the `_version` module.

Closes Bears-R-Us#4271:  add doctest to _version module

Co-authored-by: ajpotts <[email protected]>
)

Adds `doctest` unit test for the `infoclass` module.

Closes Bears-R-Us#4258:  add doctest to infoclass module

Co-authored-by: ajpotts <[email protected]>
Adds `doctest` unit tests to the `index` module.

Closes Bears-R-Us#4257:  add doctest to index module

Co-authored-by: ajpotts <[email protected]>
Adds `doctest` unit test to the `io` module.

Closes Bears-R-Us#4259:  add doctest to io module

Co-authored-by: ajpotts <[email protected]>
Adds a docstring for the `dataframe` module.


Closes Bears-R-Us#4526 docstring for dataframe module

Co-authored-by: ajpotts <[email protected]>
Adds `doctest` unit tests for the `history` module.

Closes Bears-R-Us#4256:  add doctest to history module

Co-authored-by: ajpotts <[email protected]>
Adds a docstring for the `plotting` module.

Closes Bears-R-Us#4546:  docstring for plotting module

Co-authored-by: ajpotts <[email protected]>
Since pdarray.opeq enforces that the dtype of a scalar must match the
dtype of the vector, this PR makes similar changes to the server to
enforce that. This eliminates ~20 instantiations of `opeqvs`

Future work: given that `pdarray.opeq`/`opeqvs` outlaws `vector op=
scalar`, can `pdarray._binop`/`pdarray._r_binop`/`binopsv`/`binopvs` do
the same?

---------

Signed-off-by: Jade Abraham <[email protected]>
Added examples for the `infoclass` module. Also created a `doctest` unit
test for the module.

Closes Bears-R-Us#4574:  infoclass module doctest

Co-authored-by: ajpotts <[email protected]>
…ears-R-Us#4731)

Previously this used the `.isSorted()` method which is unavailable.

Signed-off-by: Shreyas Khandekar <[email protected]>
Refactors `hashArrays` and `hasHelper` to avoid some of the duplicated
code.

I observed this making a 8% reduction on the generated code size

Signed-off-by: Jade Abraham <[email protected]>
Adds doctest unit test the the `client` module.

Closes Bears-R-Us#4252:  add doctest to client module

Co-authored-by: ajpotts <[email protected]>
…Op (Bears-R-Us#4728)

This PR makes a few changes to how bitwise and boolean ops are computed
in the arkouda server.

- Since the order of operands to bitwise ops does not matter, by using a
helper function `doBoolBoolBitOp` and only calling it with operands in
the same order (always `vector, scalar` or `vector, vector`) we can save
some compilation time
- The same `Set.set` was being recreated all over the place to determine
if an op was an operator. This PR refactors that set into a common place
so it does not get instantiated for all the generic combinations.
- Makes a similar transformation with `Set.set` for `realOps`

I consider this a general cleanup and consolidation of logic in
BinOp/OperatorMsg, it also saves a little bit of time while compiling

---------

Signed-off-by: Jade Abraham <[email protected]>
Adds a docstring for `groupbyclass`.

Closes Bears-R-Us#4532:  docstring for groupbyclass

Co-authored-by: ajpotts <[email protected]>
Adds a docstring for the `index` module.

Closes Bears-R-Us#4538:  docstring for index module

Co-authored-by: ajpotts <[email protected]>
Adds a `doctest` unit test for the `row` module.

Closes Bears-R-Us#4268:  add doctest to row module

Co-authored-by: ajpotts <[email protected]>
…4541)

Adds a docstring for the `matcher` module.

Closes Bears-R-Us#4540:  docstring for the matcher module

Co-authored-by: ajpotts <[email protected]>
Adds a docstring for the `client` module.

Closes Bears-R-Us#4542 docstring for client

---------

Co-authored-by: ajpotts <[email protected]>
This PR ports recent merged PRs from master to main.

---------

Signed-off-by: Jade Abraham <[email protected]>
Signed-off-by: Shreyas Khandekar <[email protected]>
Co-authored-by: ajpotts <[email protected]>
Co-authored-by: Jade Abraham <[email protected]>
Co-authored-by: Shreyas Khandekar <[email protected]>
Fixes a bug where empty `Strings` objects could not be instantiated or
copied.

Closes Bears-R-Us#4725:  ak.array for empty strings

Co-authored-by: ajpotts <[email protected]>
This will provide a way to test the upcoming changes to ak.find.

Modeled after the already existing benchmarks.

Closes Bears-R-Us#4743: Create a benchmark for ak.find
Bears-R-Us#4735)

Creates `pytest.N` for the size of the benchmark and `pytest.cfg` for
the arkouda configuration map for `benchmark_v2/conftest.py`.

Closes Bears-R-Us#4704:  Create a pytest.N for benchmark_v2/conftest.py
Bears-R-Us#4701:  Add pytest.ak_config to benchmark_v2

Co-authored-by: ajpotts <[email protected]>
Signed-off-by: Vassily Litvinov <[email protected]>
@vasslitvinov
vasslitvinov force-pushed the checkpoint-GeneratorSymEntry branch from 3ae0b3e to 2e94131 Compare July 29, 2025 17:03
@vasslitvinov vasslitvinov changed the title GeneratorSymEntry checkpointing Minor code improvements Jul 29, 2025
@vasslitvinov
vasslitvinov force-pushed the checkpoint-GeneratorSymEntry branch from 4e04ae5 to d950768 Compare July 29, 2025 18:48
@vasslitvinov

Copy link
Copy Markdown
Contributor Author

Moved to #4752 due to 'master' -> 'main' rename that invalidates this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants