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

Allocations improvements #69

Merged
merged 14 commits into from
Sep 10, 2023
Merged

Allocations improvements #69

merged 14 commits into from
Sep 10, 2023

Conversation

evg-tso
Copy link
Member

@evg-tso evg-tso commented Aug 23, 2023

Added

  • Add the aerospike-clj.collections/->list function, which is similar to clojure.core/mapv, but it's more efficient when the input is not a Clojure sequence.

Changed

  • Make the aerospike-clj.utils/v->array multi-arity, allowing to pass a mapper-fn to map the values before setting them into the array.
  • Optimize the aerospike-clj.utils/v->array function by calling java.util.Collection#toArray with a 0-length array, this will force the implementation to use the more performant java.util.Arrays#copyOf.
  • Add contents: write to the Push CI - master action, this should resolve the git push issues from the GitHub actions bot.

Deprecated

  • Deprecate aerospike-clj.utils/string-keys?.

@evg-tso evg-tso mentioned this pull request Aug 23, 2023
@evg-tso evg-tso requested a review from idantavor August 23, 2023 08:10
@github-actions
Copy link

github-actions bot commented Aug 23, 2023

Unit Test Results

0 tests   0 ✔️  0s ⏱️
0 suites  0 💤
0 files    0

Results for commit 3be5429.

♻️ This comment has been updated with latest results.

project.clj Outdated Show resolved Hide resolved
src/main/clojure/aerospike_clj/utils.clj Outdated Show resolved Hide resolved
src/main/clojure/aerospike_clj/utils.clj Show resolved Hide resolved
src/main/clojure/aerospike_clj/utils.clj Outdated Show resolved Hide resolved
@evg-tso evg-tso merged commit 20bcfe8 into master Sep 10, 2023
9 checks passed
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.

2 participants